Skip to content

Changes for upcoming major release - #1981

Merged
jar-stripe merged 4 commits into
masterfrom
sdk-release/next-major
Sep 29, 2026
Merged

jar-stripe merged 4 commits into
masterfrom
sdk-release/next-major

Conversation

@jar-stripe

@jar-stripe jar-stripe commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Why?

What?

  • Breaking changes for our upcoming major release

See Also

Configuration

  • skip-changefile: This PR is not a user-facing change, so there's no changefile.

@jar-stripe
jar-stripe requested a review from a team as a code owner September 29, 2026 16:51
@jar-stripe
jar-stripe requested review from justiny-stripe and a balanced review from Copilot and removed request for a team September 29, 2026 16:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The migration guide’s documented API version does not match the SDK default, and the PR metadata incorrectly marks the changes as non-user-facing.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Prepares Stripe Ruby v20 by raising the minimum Ruby version and renaming the transfer reversal resource.

Changes:

  • Requires Ruby 3.0+ and updates CI/tooling.
  • Renames Stripe::Reversal to Stripe::TransferReversal.
  • Adds release changefiles and migration guidance.
File Description
.github/​workflows/​ci.yml Removes Ruby 2.7 from CI.
.hark/​changes/​2026-09-17_zacchua_rename-reversal-transferreversal.change.md Records the resource rename.
.hark/​changes/​2026-09-25_unknown_drop-support-ruby-2-7.change.md Records Ruby 2.7 removal.
.hark/​migration-guides/​v20.md Documents v20 migration steps.
.rubocop.yml Targets Ruby 3.0 syntax.
Gemfile Makes RuboCop unconditional.
Makefile Always runs Sorbet.
README.md Updates Ruby requirements.
justfile Always runs Sorbet.
lib/​stripe/​object_types.rb Maps transfer reversals to the renamed class.
lib/​stripe/​resources.rb Registers the renamed resource.
lib/​stripe/​resources/​transfer_reversal.rb Renames the runtime class.
lib/​stripe/​stripe_object.rb Updates Ruby compatibility guidance.
rbi/​stripe.rbi Updates aggregate Sorbet declarations.
rbi/​stripe/​resources/​balance_transaction.rbi Updates reversal source typing.
rbi/​stripe/​resources/​refund.rbi Updates refund reversal typing.
rbi/​stripe/​resources/​transfer_reversal.rbi Renames the resource declaration.
rbi/​stripe/​resources/​v2/​deleted_object.rbi Normalizes formatting.
rbi/​stripe/​services/​transfer_reversal_service.rbi Updates service return types.
stripe.gemspec Requires Ruby 3.0+.
test/​stripe/​generated_examples_test.rb Renames example variables.
test/​stripe/​stripe_object_test.rb Uses Ruby 3’s Hash#except.
test/​stripe/​stripe_service_test.rb Uses argument forwarding syntax.
test/​stripe/​transfer_reversal_test.rb Tests the renamed resource class.
test/​stripe/​transfer_test.rb Updates reversal type assertions.
test/​stripe_mock.rb Freezes path constants.
Files not reviewed (4)
  • rbi/stripe.rbi: File type not supported
  • rbi/stripe/resources/balance_transaction.rbi: File type not supported
  • rbi/stripe/resources/refund.rbi: File type not supported
  • rbi/stripe/services/transfer_reversal_service.rbi: File type not supported

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .hark/changes/2026-09-25_unknown_drop-support-ruby-2-7.change.md
Comment thread .hark/migration-guides/v20.md
@jar-stripe
jar-stripe force-pushed the sdk-release/next-major branch from 3983bfa to 3f24db6 Compare September 29, 2026 17:22
xavdid and others added 4 commits September 29, 2026 10:52
* Generate Ruby TransferReversal rename

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Document TransferReversal migration

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Update TransferReversal tests

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Update migration guide

---------

Co-authored-by: codex <noreply@openai.com>
Co-authored-by: jar-stripe <jar@stripe.com>
* ⚠️ Drop support for Ruby 2.7

Committed-By-Agent: goose
Orbit-Session-Id: 46b49ea6-8080-4883-b500-9aeab03e14dc

* Revise migration guide for SDK v20

Updated migration guide for v20 to reflect new API version and Ruby requirements.
Updated the class name and references for Stripe::Reversal.
@jar-stripe
jar-stripe force-pushed the sdk-release/next-major branch from 5e56a40 to 3b484aa Compare September 29, 2026 17:52
@jar-stripe
jar-stripe merged commit fe39c2e into master Sep 29, 2026
29 checks passed
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.

5 participants