Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New config object #703

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Conversation

paulasjes-stripe
Copy link
Contributor

@paulasjes-stripe paulasjes-stripe commented Oct 4, 2019

This is a long running branch for the changes outlined in #640

Steps to complete before this can be merged:

  • Move setApiVersion to be set via a config object in the Stripe object initialization, with the intention of deprecating stripe.setApiVersion
  • Move other setters like setMaxNetworkRetires to be set via the config object
  • Allow certain properties (e.g. network retries, timeout) to be set on a per-request basis as well as a global setting
  • Update documentation and README to reflect new config object

I'll open this up for review once the previous steps are completed.

This is now ready for review! All the code in the PR was previously reviewed (see branches that were merged into this one). This should theoretically be an easy thumbs up.

r? @rattrayalex-stripe @ob-stripe
cc: @stripe/api-libraries

Copy link
Contributor

@rattrayalex-stripe rattrayalex-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\o/

@ob-stripe ob-stripe removed their request for review November 4, 2019 19:29
@rattrayalex-stripe rattrayalex-stripe merged commit 265827e into master Nov 7, 2019
@rattrayalex-stripe rattrayalex-stripe deleted the paulasjes/new-config-object branch November 7, 2019 02:24
@kristijanhusak
Copy link

@rattrayalex-stripe npm is not updated with the new release version.

@rattrayalex-stripe
Copy link
Contributor

Released as 7.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants