Skip to content

Commit

Permalink
Merge pull request #1743 from stripe/anniel-remove-circular-references
Browse files Browse the repository at this point in the history
Remove circular reference in Stripe object
  • Loading branch information
richardm-stripe authored Apr 5, 2023
2 parents 91b0a6e + 4a90564 commit e4b6bcf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/stripe.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ export function createStripe(
Stripe.HttpClientResponse = HttpClientResponse;
Stripe.CryptoProvider = CryptoProvider;

// For backwards compatibiblity after moving to separate CJS and ESM entrypoints.
// To be removed in the next major version.
Stripe.Stripe = Stripe;
Stripe.default = Stripe;

function Stripe(
this: StripeObject,
key: string,
Expand Down
3 changes: 0 additions & 3 deletions testProjects/mjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ assert(Stripe.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
assert(Stripe.webhooks);
assert(Stripe.resources);

assert(Stripe.Stripe);
assert(Stripe.default);

const stripe = new Stripe(process.argv[2]);
const defaultStripe = new DefaultStripe(process.argv[2]);

Expand Down

0 comments on commit e4b6bcf

Please sign in to comment.