Skip to content

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

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

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

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 16, 2026

This PR contains the following updates:

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

Release Notes

stripe/stripe-node (stripe)

v22.0.2

Compare Source

  • #​2685 Adds parseEventNotificationAsync to match existing sync function
  • #​2681 Add emitEventBodies config to include bodies in request/response events
    • Added emitEventBodies config option to include request and response bodies in request/response events.
    • Changed httpClient config type from HttpClient class to HttpClientInterface interface.
  • #​2670 tolerance, receivedAt, timestamp are now optional in Webhook.ts
  • #​2677 Fixed named export for Bun
    // ✅ Fixed
    import { Stripe } from '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 becomes conflicted, 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.

@renovate renovate Bot force-pushed the renovate/stripe-22.x branch from 9e4da63 to 4b09dbe Compare April 16, 2026 21:10
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