Skip to content

Commit a68e8e0

Browse files
Bump version to 22.0.1
1 parent 84f3e3a commit a68e8e0

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## 22.0.1 - 2026-04-08
4+
* [#2669](https://github.com/stripe/stripe-node/pull/2669) Add constructor based initialization for CJS based TypeScript imports
5+
* Initialization of Stripe class with `new` keyword is now possible for CJS based TypeScript project. Resolves: [2660](https://github.com/stripe/stripe-node/issues/2660)
6+
```ts
7+
import Stripe = require('stripe');
8+
// ✅ Both statements work
9+
const stripeNew: Stripe.Stripe = new Stripe('sk_test_...');
10+
const stripeCalled: Stripe.Stripe = Stripe('sk_test_...');
11+
```
12+
* [#2664](https://github.com/stripe/stripe-node/pull/2664) Fixed nested service param exports in the Stripe namespace
13+
* Resolves: [2658](https://github.com/stripe/stripe-node/issues/2658), [2662](https://github.com/stripe/stripe-node/issues/2662)
14+
* [#2667](https://github.com/stripe/stripe-node/pull/2667) Add type safety to Stripe constructor config (no runtime change)
15+
- Fixed some compile-time checks (no runtime changes)
16+
- Fixed `Stripe` constructor config parameter to use `StripeConfig` type instead of `Record<string, unknown>`, restoring compile-time type safety.
17+
- Added missing `authenticator` property to `StripeConfig`.
18+
- Fixed `Stripe.API_VERSION` to retain the literal API version type.
19+
- Fixed `StripeConfig.stripeContext` to accept `StripeContext` objects in addition to strings.
20+
* [#2663](https://github.com/stripe/stripe-node/pull/2663) Throw a more descriptive error when calling `rawRequest` with absolute urls
21+
* [#2652](https://github.com/stripe/stripe-node/pull/2652) Added `string[]` to `WebhookHeader` type for compatibility with express
22+
* Added `string[]` to the type of `signature` param in `stripe.webhooks.construct_event` method.
23+
324
## 22.0.0 - 2026-04-02
425
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](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v22) to simplify your upgrade process.
526

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.0.0
1+
22.0.1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stripe",
3-
"version": "22.0.0",
3+
"version": "22.0.1",
44
"description": "Stripe API wrapper",
55
"keywords": [
66
"stripe",

src/stripe.core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ const defaultRequestSenderFactory: RequestSenderFactory = (stripe) =>
937937
new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
938938

939939
export class Stripe {
940-
static PACKAGE_VERSION = '22.0.0';
940+
static PACKAGE_VERSION = '22.0.1';
941941
static API_VERSION: typeof ApiVersion = ApiVersion;
942942
static aiAgent =
943943
typeof process !== 'undefined' && process.env

src/stripe.esm.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ const defaultRequestSenderFactory: RequestSenderFactory = (stripe) =>
938938
new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
939939

940940
export class Stripe {
941-
static PACKAGE_VERSION = '22.0.0';
941+
static PACKAGE_VERSION = '22.0.1';
942942
static API_VERSION: typeof ApiVersion = ApiVersion;
943943
static aiAgent =
944944
typeof process !== 'undefined' && process.env

0 commit comments

Comments
 (0)