Skip to content

Commit

Permalink
Next major release changes (#1608)
Browse files Browse the repository at this point in the history
* Update StripeSignatureVerificationError to accept header and payload strings

* Build

* Update supported runtime versions

* Remove Orders and subscription_data[items]

* Remove SKU resource

* Remove SKUs.spec.js

* Remove deprecated configuration setter methods (#1597)

* Remove deprecated config properties

* Update test and remove config properties from types/

* Remove setProtocol from types, refactor old tests

* Replace more require('../lib/stripe') with Stripe

* Remove global stripe from EphemeralKeys test

* Rename local stripe to newStripe in stripe.spec.js

* Refactor EphemeralKeys.spec.js

* Remove more deprecated items (#1600)

Remove remaining deprecated items

* Generate files for next major (#1603)

* Generate next major

* Deprecate StripeResource.path and related interfaces (#1604)

* Deprecate path

* More fully deprecate

* Fix linting errors

* Revert "Fix linting errors"

This reverts commit 68ac772.

* Revert "Deprecate StripeResource.path and related interfaces (#1604)"

This reverts commit 9c9de9e.

* fix tests to work without Invoices defining fullPAth

Co-authored-by: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com>
Co-authored-by: Richard Marmorstein <richardm@stripe.com>

* Update LatestApiVersion and types reference

* Update all references to latest API version

* Regenerate

* Latest API version

* fix tests

* Update API_VERSION and references

* Format

Co-authored-by: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com>
Co-authored-by: Richard Marmorstein <richardm@stripe.com>
Co-authored-by: Pavel Krymets <pakrym@stripe.com>
Co-authored-by: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com>
  • Loading branch information
5 people committed Nov 16, 2022
1 parent 7c11056 commit 3e80143
Show file tree
Hide file tree
Showing 330 changed files with 990 additions and 5,951 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ jobs:
- "16"
- "14"
- "12"
- "10"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-08-01
2022-11-15
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ See [video demonstrations][youtube-playlist] covering how to use the library.

## Requirements

Node 8, 10 or higher.
Node 12 or higher.

## Installation

Expand Down Expand Up @@ -73,7 +73,7 @@ and instantiate it as `new Stripe()` with the latest API version.
```ts
import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...', {
apiVersion: '2022-08-01',
apiVersion: '2022-11-15',
});

const createCustomer = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import env from 'dotenv';
env.config();

const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
apiVersion: '2022-08-01',
apiVersion: '2022-11-15',
});

const webhookSecret: string = process.env.STRIPE_WEBHOOK_SECRET;
Expand Down
8 changes: 7 additions & 1 deletion lib/Error.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 0 additions & 26 deletions lib/StripeMethod.basic.js

This file was deleted.

13 changes: 1 addition & 12 deletions lib/StripeResource.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 6 additions & 24 deletions lib/Webhooks.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/apiVersion.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions lib/resources.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions lib/resources/AccountLinks.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 21 additions & 22 deletions lib/resources/Accounts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions lib/resources/ApplePayDomains.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions lib/resources/ApplicationFees.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3e80143

Please sign in to comment.