Skip to content

Conversation

@dstaley
Copy link
Member

@dstaley dstaley commented Jan 29, 2026

Description

This PR adds the missing avatar_url, free_trial_days, and free_trial_enabled fields to the CommercePlan resource in the backend package.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • New Features
    • Enhanced billing plan information with three new optional fields: avatar URL, free trial days count, and free trial enabled status for improved plan presentation and trial management capabilities.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Jan 29, 2026 10:31pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Jan 29, 2026

🦋 Changeset detected

Latest commit: 72c7f37

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@clerk/backend Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 29, 2026

📝 Walkthrough

Walkthrough

This pull request adds three missing fields to the BillingPlan type in the @clerk/backend package. The avatarUrl, freeTrialDays, and freeTrialEnabled fields are added as public members to the BillingPlan class. The constructor signature is updated to accept these new parameters following the existing features field. The BillingPlanJSON interface is expanded with corresponding JSON mapping fields (avatar_url, free_trial_days, free_trial_enabled), and the fromJSON method is updated to populate these fields from the JSON data. A changeset entry documents this patch-level change.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding missing fields (avatarUrl, freeTrialDays, freeTrialEnabled) to the CommercePlan/BillingPlan type.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 29, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@7707

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@7707

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@7707

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@7707

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@7707

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@7707

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@7707

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@7707

@clerk/express

npm i https://pkg.pr.new/@clerk/express@7707

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@7707

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@7707

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@7707

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@7707

@clerk/react

npm i https://pkg.pr.new/@clerk/react@7707

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@7707

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@7707

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@7707

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@7707

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@7707

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@7707

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@7707

commit: 72c7f37

@dstaley dstaley merged commit 5b24266 into main Jan 30, 2026
40 checks passed
@dstaley dstaley deleted the ds.fix/backend-plans-free-trial branch January 30, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants