diff --git a/CHANGELOG.md b/CHANGELOG.md index 05586a9bb8..07f2453def 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,42 @@ # Changelog +## 13.0.0 - 2023-08-16 +* This release changes the pinned API version to `2023-08-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-08-16) and carefully review the API changes before upgrading `stripe-node`. +* More information is available in the [stripe-node v13 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v13) +" ⚠️" symbol highlights breaking changes. +* ⚠️[#1803](https://github.com/stripe/stripe-node/pull/1803) Change the default behavior to perform 1 reattempt on retryable request failures (previously the default was 0). +* [#1808](https://github.com/stripe/stripe-node/pull/1808) Allow request-level options to disable retries. +* ⚠️Remove deprecated `del` method on `Subcriptions`. Please use the `cancel` method instead, which was introduced in [v9.14.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#9140---2022-07-18): +* [#1872](https://github.com/stripe/stripe-node/pull/1872) Update generated code + * ⚠️Add support for new values `verification_directors_mismatch`, `verification_document_directors_mismatch`, `verification_extraneous_directors`, and `verification_missing_directors` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * ⚠️Remove support for values `custom_account_update` and `custom_account_verification` from enum `AccountLinkCreateParams.type` + * These values are not fully operational + * ⚠️Remove support for `available_on` on `BalanceTransactionListParams` + * Use of this parameter is discouraged. You may use [`.AddExtraParam`](https://github.com/stripe/stripe-dotnet/#parameters) if sending the parameter is still required. + * ⚠️Remove support for `alternate_statement_descriptors` and `dispute` on `Charge` + * Use of these fields is discouraged. + * ⚠️Remove support for `destination` on `Charge` + * Please use `transfer_data` or `on_behalf_of` instead. + * ⚠️Remove support for `shipping_rates` on `Checkout.SessionCreateParams` + * Please use `shipping_options` instead. + * ⚠️Remove support for `coupon` and `trial_from_plan` on `Checkout.SessionCreateParams.subscription_data` + * Please [migrate to the Prices API](https://stripe.com/docs/billing/migration/migrating-prices), or suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required. + * ⚠️Remove support for value `card_present` from enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * This value was not fully operational. + * ⚠️Remove support for value `charge_refunded` from enum `Dispute.status` + * This value was not fully operational. + * ⚠️Remove support for `blik` on `Mandate.payment_method_details`, `PaymentMethodUpdateParams`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * These fields were mistakenly released. + * ⚠️Remove support for `acss_debit`, `affirm`, `au_becs_debit`, `bacs_debit`, `cashapp`, `sepa_debit`, and `zip` on `PaymentMethodUpdateParams` + * These fields are empty. + * ⚠️Remove support for `country` on `PaymentMethod.link` + * This field was not fully operational. + * ⚠️Remove support for `recurring` on `PriceUpdateParams` + * This property should be set on create only. + * ⚠️Remove support for `attributes`, `caption`, and `deactivate_on` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` + * These fields are not fully operational. + * ⚠️Add support for new value `2023-08-16` on enum `WebhookEndpointCreateParams.api_version` + ## 12.18.0 - 2023-08-10 * [#1867](https://github.com/stripe/stripe-node/pull/1867) Update generated code * Add support for new values `incorporated_partnership` and `unincorporated_partnership` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure` diff --git a/VERSION b/VERSION index b06cd07c44..02161ca86e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -12.18.0 +13.0.0 diff --git a/package.json b/package.json index a867853e3f..4ac515e2a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "12.18.0", + "version": "13.0.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 976bb1268d..2426286cd1 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -49,7 +49,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '12.18.0'; + Stripe.PACKAGE_VERSION = '13.0.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node',