Skip to content

Release v3.33.0 - #137

Merged
cb-alish merged 1 commit into
masterfrom
release/v3.33.0
Sep 9, 2026
Merged

Release v3.33.0#137
cb-alish merged 1 commit into
masterfrom
release/v3.33.0

Conversation

@cb-alish

@cb-alish cb-alish commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

v3.33.0

Bug Fixes

  • PC-V1 attributes (plan_id, plan_quantity, plan_constraint, addon_constraint, embed, etc.) are now typed as optional across all affected resources (Subscription, Coupon, HostedPage, Quote, QuotedSubscription, Estimate, Gift).

Why: PC-V1 and PC-V2 APIs coexist in the same Chargebee environment. PC-V1-only fields are absent in PC-V2 responses, so marking them as required caused incorrect TypeScript type errors for PC-V2 users.

Generator fix: chargebee/sdk-generator#112

Made with Cursor

Updated v3.33.0 TypeScript typings to make PC-V1-only fields optional across affected resources and request parameters. This supports environments where PC-V2 responses omit fields such as plan_id, plan_quantity, plan_constraint, addon_constraint, and embed.

@snyk-io

snyk-io Bot commented Sep 9, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues
Secrets 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Warning

Review limit reached

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 99387b9f-1856-438f-b8ae-1baf99879e64

📥 Commits

Reviewing files that changed from the base of the PR and between a405834 and e67d745.

📒 Files selected for processing (7)
  • src/schema/estimate.schema.ts
  • src/schema/gift.schema.ts
  • src/schema/hosted_page.schema.ts
  • src/schema/omnichannel_subscription.schema.ts
  • src/schema/quote.schema.ts
  • src/schema/subscription.schema.ts
  • src/schema/subscription_entitlement.schema.ts

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 9fcb04d8-e58a-4c4a-bf63-77cd2ca14d02

📥 Commits

Reviewing files that changed from the base of the PR and between 98a2bbb and a405834.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (11)
  • CHANGELOG.md
  • VERSION
  • package.json
  • src/environment.ts
  • types/resources/Coupon.d.ts
  • types/resources/Estimate.d.ts
  • types/resources/Gift.d.ts
  • types/resources/HostedPage.d.ts
  • types/resources/Quote.d.ts
  • types/resources/QuotedSubscription.d.ts
  • types/resources/Subscription.d.ts

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The PR makes PC-V1 resource and request fields optional in TypeScript declarations. It updates package version metadata and adds a v3.33.0 changelog entry.

Changes

PC-V1 Type Optionality

Layer / File(s) Summary
Optional resource and input fields
types/resources/*.d.ts
PC-V1 fields such as plan_id, plan_quantity, plan_constraint, addon_constraint, and embed are now optional across the affected resource and input declarations.

Release Versioning

Layer / File(s) Summary
Version metadata and changelog
CHANGELOG.md, VERSION, package.json, src/environment.ts
Package metadata and the exported client version are updated to v3.33.0. The changelog documents the TypeScript declaration changes.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to a4058

This release makes PC-V1-only fields optional in the TypeScript SDK so PC-V2 responses and related inputs can omit them without type errors. The declaration updates and v3.33.0 version metadata are consistent, with no current merge-blocking risk identified.

Assessment against linked issues

Objective Addressed Explanation
Mark PC-V1 attributes as optional in affected TypeScript resource and request declarations [#112]
Apply optional typing across Subscription, Coupon, HostedPage, Quote, QuotedSubscription, Estimate, and Gift declarations [#112]

Suggested reviewers: cb-karthikp

🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 8…

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

- PC-V1 attributes are now optional in TypeScript types
  (Subscription, Coupon, HostedPage, Quote, QuotedSubscription, Estimate, Gift)
- PC-V1 and PC-V2 APIs coexist; PC-V1-only fields must not be required

Co-authored-by: Cursor <cursoragent@cursor.com>
@cb-alish
cb-alish merged commit 8ed259f into master Sep 9, 2026
9 checks passed
@cb-alish
cb-alish deleted the release/v3.33.0 branch September 9, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants