Skip to content

chore(deps): bump stripe from 14.25.0 to 22.0.1#2

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/stripe-22.0.1
Closed

chore(deps): bump stripe from 14.25.0 to 22.0.1#2
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/stripe-22.0.1

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot bot commented on behalf of github Apr 13, 2026

Bumps stripe from 14.25.0 to 22.0.1.

Release notes

Sourced from stripe's releases.

v22.0.1

  • #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.

See the changelog for more details.

v22.0.0

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:

... (truncated)

Changelog

Sourced from stripe's changelog.

22.0.1 - 2026-04-08

  • #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.

22.0.0 - 2026-04-02

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')

... (truncated)

Commits
  • a68e8e0 Bump version to 22.0.1
  • 84f3e3a Fixed version update logic (#2674)
  • 60d556f Fixed nested service param exports in the Stripe namespace (#2664)
  • 15ad8fb Add constructor based initialization for CJS based TypeScript imports (#2669)
  • c1ba099 Add type safety to Stripe constructor config (no runtime change) (#2667)
  • 08e7260 Throw a more descriptive error when calling rawRequest with absolute urls (...
  • 0382565 Added string[] to WebhookHeader type for compatibility with express (#2652)
  • 1c7583c Bump lodash from 4.17.21 to 4.18.1 (#2644)
  • a2e8723 Updated the changelog entries for the v22 major version. (#2650)
  • 210de11 Bump version to 22.0.0
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for stripe since your current version.


@dependabot @github
Copy link
Copy Markdown
Author

dependabot bot commented on behalf of github Apr 13, 2026

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Bumps [stripe](https://github.com/stripe/stripe-node) from 14.25.0 to 22.0.1.
- [Release notes](https://github.com/stripe/stripe-node/releases)
- [Changelog](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md)
- [Commits](stripe/stripe-node@v14.25.0...v22.0.1)

---
updated-dependencies:
- dependency-name: stripe
  dependency-version: 22.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot changed the title build(deps): bump stripe from 14.25.0 to 22.0.1 chore(deps): bump stripe from 14.25.0 to 22.0.1 Apr 13, 2026
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/stripe-22.0.1 branch from 422d7b7 to bead343 Compare April 13, 2026 10:50
@HeijnesR HeijnesR closed this Apr 13, 2026
@HeijnesR HeijnesR deleted the dependabot/npm_and_yarn/stripe-22.0.1 branch April 13, 2026 10:57
@dependabot @github
Copy link
Copy Markdown
Author

dependabot bot commented on behalf of github Apr 13, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

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.

1 participant