Skip to content

chore(deps): update dependency stripe to v22#1827

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/stripe-22.x
Open

chore(deps): update dependency stripe to v22#1827
renovate[bot] wants to merge 1 commit intomainfrom
renovate/stripe-22.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Apr 3, 2026

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
stripe ^21.0.1^22.0.1 age adoption passing confidence

Release Notes

stripe/stripe-node (stripe)

v22.0.1

Compare Source

  • #​2669 Add constructor based initialization for CJS based TypeScript imports
    • Initialization of Stripe class with new keyword is now possible for CJS based TypeScript project. Resolves: 2660
    import Stripe = require('stripe');
    // ✅ Both statements work
    const stripeNew: Stripe.Stripe = new Stripe('sk_test_...');
    const stripeCalled: Stripe.Stripe = Stripe('sk_test_...');
  • #​2664 Fixed nested service param exports in the Stripe namespace
  • #​2667 Add type safety to Stripe constructor config (no runtime change)
    • Fixed some compile-time checks (no runtime changes)
      • Fixed Stripe constructor config parameter to use StripeConfig type instead of Record<string, unknown>, restoring compile-time type safety.
      • Added missing authenticator property to StripeConfig.
      • Fixed Stripe.API_VERSION to retain the literal API version type.
      • Fixed StripeConfig.stripeContext to accept StripeContext objects in addition to strings.
  • #​2663 Throw a more descriptive error when calling rawRequest with absolute urls
  • #​2652 Added string[] to WebhookHeader type for compatibility with express
    • Added string[] to the type of signature param in stripe.webhooks.construct_event method.

v22.0.0

Compare Source

This release uses the same pinned API version to 2026-03-25.dahlia as the last major release. The breaking changes in this release are prefixed with ⚠️ below. There's also a detailed migration guide to simplify your upgrade process.

  • #​2619 Improved TypeScript support in the Node SDK
    • Moved the types from the partially manually maintained and partially generated types folder to be inline with the implementation in TypeScript files.
    • Removed top-level “stripe” ambient module. This allows import aliasing for the stripe package.
    • ⚠️ Stripe.StripeContext is no longer exported as a type. Use Stripe.StripeContextType instead.
    • ⚠️ Stripe.errors.StripeError is no longer a type. Use typeof Stripe.errors.StripeError or Stripe.ErrorType instead.
    • ⚠️ CJS entry point no longer exports .default or .Stripe as separate properties.
    • ⚠️ Stripe import is now a true ES6 class. Use new Stripe() to create a StripeClient instead of calling it:
// Before
const stripeClient = Stripe("sk_test_...");

// After
const stripeClient = new Stripe("sk_test_...");
  • #​2645 ⚠️ Remove stripeMethod and standardize how function args are handled (including removing callback support)

    • ⚠️ Refactor how incoming method arguments are parsed. Type signatures for API methods should be much more accurate and reliable now
      • ⚠️ Remove support for providing callbacks to API methods. Use async / await instead
      • ⚠️ Remove support for passing a plain API key as a function arg. If supplied on a per-request basis, it should be in the RequestOptions under the apiKey property
      • ⚠️ Keys from params and options objects are no longer mixed. If present on a method, RequestParams must always come first and RequestOptions must always come second. To supply options without params, pass undefined as the first argument explicitly
      • ⚠️ Removed methods from StripeResource: createFullPath, createResourcePathWithSymbols, extend, method and _joinUrlParts. These were mostly intended for internal use and we no longer need them

    As a result, the following call patterns are no longer supported:

    stripe.customers.retrieve('cus_123', 'sk_test_123')
    stripe.customers.create({name: 'david', host: 'example.com'}, 'sk_test_123')
    stripe.customers.create({apiKey: 'sk_test_123'})
    stripe.customers.list(customers => {
      // do something with customers
    })

    If those look familiar, head over to the migration guide to update your code.

  • #​2643 ⚠️ Removed per-request host override. To use a custom host, set it in the client configuration. All requests from that client will use that host.

    Before:

    import Stripe from 'stripe';
    const stripe = new Stripe('sk_test_...');
    
    const customer = await stripe.customers.create({
      email: 'customer@example.com',
    }, {host: 'example.com'});

    After:

    import Stripe from 'stripe';
    const stripe = new Stripe('sk_test_...', {host: 'example.com'});
    
    // goes to example.com
    const customer = await stripe.customers.create({
      email: 'customer@example.com',
    });
  • #​2619 Improved TypeScript support in the Node SDK

  • #​2638 Converted V2/Amount.ts to V2/V2Amount.ts

  • #​2635 Updated stripe.spec.ts test and constructEvent.tolerance type


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Apr 3, 2026

PR Summary

  • Update of Stripe Package
    The version of the stripe software package used in our application has been updated. This is akin to getting a newer version of a tool, so we can expect improved performance, potential new features, and bug fixes that enhance the overall operation of our services that utilize Stripe for payment processing.

@renovate renovate bot force-pushed the renovate/stripe-22.x branch 2 times, most recently from e7d9b72 to bc7ea18 Compare April 5, 2026 08:49
@renovate renovate bot changed the title chore(deps): update dependency stripe to v22 chore(deps): update devdependency stripe to v22 Apr 5, 2026
@renovate renovate bot force-pushed the renovate/stripe-22.x branch 6 times, most recently from 40ed00b to b6da0ab Compare April 7, 2026 14:35
@renovate renovate bot changed the title chore(deps): update devdependency stripe to v22 chore(deps): update dependency stripe to v22 Apr 8, 2026
@renovate renovate bot force-pushed the renovate/stripe-22.x branch 7 times, most recently from 64ec6fa to f1d1800 Compare April 14, 2026 14:39
@renovate renovate bot force-pushed the renovate/stripe-22.x branch from f1d1800 to 1fce990 Compare April 15, 2026 12:36
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.

0 participants