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

stripe-node v7.0.0 #606

Merged
merged 14 commits into from
May 14, 2019
Merged

stripe-node v7.0.0 #606

merged 14 commits into from
May 14, 2019

Conversation

rattrayalex-stripe
Copy link
Contributor

@rattrayalex-stripe rattrayalex-stripe commented May 3, 2019

This is a major release of stripe-node, dropping support for several old versions of Node and deprecated methods.

The migration guide contains a detailed list of backwards-incompatible changes with upgrade instructions.

cc @stripe/api-libraries
cc @ob-stripe @paulasjes-stripe @robz-stripe

⚠️ = breaking changes

follow-on

package.json Outdated Show resolved Hide resolved
@ob-stripe
Copy link
Contributor

@rattrayalex-stripe @irace-stripe We try to keep the commit history as clean as possible in the libraries repos. Do you mind squashing the commits here? I think there should only be two so far in this branch:

  • one for dropping support for Node 4/5/7
  • one for Prettier formatting changes

@irace-stripe
Copy link

@ob-stripe @rattrayalex-stripe This branch has now been rebased to have a clean commit history.

@irace-stripe
Copy link

Added another branch off of this one: #610

@ob-stripe
Copy link
Contributor

@rattrayalex-stripe @irace-stripe You should rebase on master to get the new balanceTransactions resource.

@rattrayalex-stripe
Copy link
Contributor Author

I might actually wait to rebase master till we're removed deprecated things too, so we can rebase once just before merging/releasing.

@ob-stripe ob-stripe changed the title [WIP] Major version 7: Drop support for Node 4, Node 5, and deprecated methods [WIP] stripe-node v7.0.0 May 8, 2019
@rattrayalex-stripe rattrayalex-stripe changed the title [WIP] stripe-node v7.0.0 stripe-node v7.0.0 May 14, 2019
@rattrayalex-stripe
Copy link
Contributor Author

Alright, I think this is ready to go!

cc @ob-stripe I intend to merge and release within an hour or two.

rattrayalex-stripe and others added 11 commits May 14, 2019 15:11
* Add lebab and a script to run it

* lebab transform: arrow

* lebab transform: arg-rest

* lebab transform: arg-spread

* lebab transform: obj-method

* lebab transform: obj-shorthand

* lebab transform: let

* lebab transform: template

* lebab transform: default-param

* lebab transform: destruct-param

* lebab transform: includes

* Revert "Add lebab and a script to run it"

This reverts commit 70fd492.

* Revert "lebab transform: destruct-param" because its changes didn't seem good.

This  reverts commit b56f52d.

* Revert "lebab transform: default-param" because it seems dangerous / backwards-incompatible.

This reverts commit 7eba992.

* Unrelated: mark 8.1 as minimum 8-series version

* Add mocha-only script

* Use arrows in more places

* Loosen some eslint rules I don't love
* Misc. manual formatting

* Fix some unit tests

* Roll back path argument name changes

* Misc. manual formatting
rattrayalex-stripe and others added 3 commits May 14, 2019 16:08
)

* Drop support for optional url params

* Delete nested resource files

* Remove urlData

* Extract urlParams from path instead of manual definition

Verified this is no different with:

```js
const urlParams = utils.extractUrlParams(spec.path || '');
if (
  !(spec.urlParams || []).every((x, i) => urlParams[i] === x) ||
  (spec.urlParams || []).length !== urlParams.length
) {
  throw Error(
    'mismatch' + JSON.stringify(urlParams) + JSON.stringify(spec.urlParams)
  );
}
```

inside StripeMethod

* Remove manually specified urlParams

* Add a deprecation error message

* Revert "Delete nested resource files"

This reverts commit d88a3e7.

* Fix nested resources for non-curried urlParams and update tests to demonstrate their use

* Refactor makeRequest

* Revert "Revert "Delete nested resource files""

This reverts commit e5eccb8.
* Extract separate resources file (to aid with code generation)

* Remove resources that were removed in #625

https://github.com/stripe/stripe-node/pull/625/files#diff-d3dd6c4fd6f915f29d42e4081dc817a8L85
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.

3 participants