-
Notifications
You must be signed in to change notification settings - Fork 68
Comparing changes
Open a pull request
base repository: octokit/rest.js
base: 14f18c20f1aba099462d1cb907f7a41ca5945e9e
head repository: octokit/rest.js
compare: 3c4ab020c640c04f52e5d8d2d7bb5835bed540f6
Commits on Nov 29, 2017
-
Configuration menu - View commit details
-
Copy full SHA for f7b9706 - Browse repository at this point
Copy the full SHA f7b9706View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d68733 - Browse repository at this point
Copy the full SHA 2d68733View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d90f3b - Browse repository at this point
Copy the full SHA 8d90f3bView commit details -
breaking: remove custom Promise option
BREAKING CHANGE: passing a custom `Promise` option to the constructor is no longer supported ```js const Client = require(./../lib/index) const github = new Client({ Promise: Promise }) ``` All suppertod Node versions (4, 6 and 8) have Promise support built in now. So migrating should be as simple as removing the `Promise` option altogether.
Configuration menu - View commit details
-
Copy full SHA for 68cf60e - Browse repository at this point
Copy the full SHA 68cf60eView commit details -
breaking: remove "netrc" authentication type (#640)
BREAKING CHANGE: Authentication with `"netrc"` is no longer supported: ```js github.authenticate({ type: "netrc" }) ``` Instead, use the [netrc](https://www.npmjs.com/package/netrc) package directly and pass username/password to `"basic"` authentication ```js const netrc = require('netrc') const myNetrc = netrc() github.authenticate({ type: 'basic', username: myNetrc['api.github.com'].login, password: myNetrc['api.github.com'].password }) ```
Configuration menu - View commit details
-
Copy full SHA for ad4f149 - Browse repository at this point
Copy the full SHA ad4f149View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70b0611 - Browse repository at this point
Copy the full SHA 70b0611View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5239442 - Browse repository at this point
Copy the full SHA 5239442View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0893c81 - Browse repository at this point
Copy the full SHA 0893c81View commit details -
BREAKING CHANGE: the `followRedirects` option has been removed. Previous problems with non-GET redirects should be handled correctly now, the method is always forwarded as all redirects remain within the same host
Configuration menu - View commit details
-
Copy full SHA for 61e7a81 - Browse repository at this point
Copy the full SHA 61e7a81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fba0f0 - Browse repository at this point
Copy the full SHA 1fba0f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8423f04 - Browse repository at this point
Copy the full SHA 8423f04View commit details -
fix: github.repos.uploadAsset() options
BREAKING CHANGE: The current implementation has the upload URL hard coded, while the specification says that it has to be received from the Release API endpoint: https://developer.github.com/v3/repos/releases/#upload-a-release-asset The new implementation also requires `contentType` as well as `contentLength`. The latter is not documented, but is required. The `filePath` option has been replaced with a `file` option which can be either a read stream, a buffer or a string. Altogether, uploading an asset before worked like this: ```js github.repos.getReleaseByTag({ owner: "octokit-fixture-org", repo: "release-assets", tag: "v1.0.0" }) .then(result => { return github.repos.uploadAsset({ owner: "octokit-fixture-org", repo: "release-assets", id: result.data.id, filePath: pathResolve(__dirname, "test-upload.txt"), name: "test-upload.txt", label: "test" }) }) ``` Now it looks like this ```js github.repos.getReleaseByTag({ owner: "octokit-fixture-org", repo: "release-assets repo: "release-assets repo: "release-assets repo: "release-assets repo: "release-assets repo: "release-assets repo: "release-assets repo: "release-assett/ repo: "release-assets repo: "release-assets repo: "releas label: "test" }) }) ``` If you prefer a higher-level release asset upload library, have a look at https://github.com/gr2m/octokit-release-asset-upload
Configuration menu - View commit details
-
Copy full SHA for 07d5e36 - Browse repository at this point
Copy the full SHA 07d5e36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2430c6a - Browse repository at this point
Copy the full SHA 2430c6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9562736 - Browse repository at this point
Copy the full SHA 9562736View commit details -
Configuration menu - View commit details
-
Copy full SHA for f88a044 - Browse repository at this point
Copy the full SHA f88a044View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a08766 - Browse repository at this point
Copy the full SHA 2a08766View commit details -
breaking:
debug
option removedBREAKING CHANGE: The `debug` option for the GitHub Client constructor has been removed. Set `DEBUG=node-github:*` environment variable instead
Configuration menu - View commit details
-
Copy full SHA for c2c9f8a - Browse repository at this point
Copy the full SHA c2c9f8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 175ee19 - Browse repository at this point
Copy the full SHA 175ee19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50ab622 - Browse repository at this point
Copy the full SHA 50ab622View commit details -
Configuration menu - View commit details
-
Copy full SHA for 101d74c - Browse repository at this point
Copy the full SHA 101d74cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d57f369 - Browse repository at this point
Copy the full SHA d57f369View commit details -
Configuration menu - View commit details
-
Copy full SHA for 535f150 - Browse repository at this point
Copy the full SHA 535f150View commit details -
Configuration menu - View commit details
-
Copy full SHA for a469313 - Browse repository at this point
Copy the full SHA a469313View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b88470 - Browse repository at this point
Copy the full SHA 5b88470View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cd8b80 - Browse repository at this point
Copy the full SHA 5cd8b80View commit details -
test: add test for github.get{scopeName}Api()
We can porbably remove it. It’s 6+ years old and not documented
Configuration menu - View commit details
-
Copy full SHA for 04703f7 - Browse repository at this point
Copy the full SHA 04703f7View commit details -
We are in full control of the recursive loops, we don’t need that check
Configuration menu - View commit details
-
Copy full SHA for 8e3823b - Browse repository at this point
Copy the full SHA 8e3823bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a30714 - Browse repository at this point
Copy the full SHA 9a30714View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b5d1c4 - Browse repository at this point
Copy the full SHA 9b5d1c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb03bb5 - Browse repository at this point
Copy the full SHA cb03bb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8ad015 - Browse repository at this point
Copy the full SHA b8ad015View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21db66f - Browse repository at this point
Copy the full SHA 21db66fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1299382 - Browse repository at this point
Copy the full SHA 1299382View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfd77d2 - Browse repository at this point
Copy the full SHA cfd77d2View commit details -
There is not a single route definition without a params property
Configuration menu - View commit details
-
Copy full SHA for 611f4c7 - Browse repository at this point
Copy the full SHA 611f4c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 085870f - Browse repository at this point
Copy the full SHA 085870fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a7fd70 - Browse repository at this point
Copy the full SHA 5a7fd70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45bd678 - Browse repository at this point
Copy the full SHA 45bd678View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3639a98 - Browse repository at this point
Copy the full SHA 3639a98View commit details -
Configuration menu - View commit details
-
Copy full SHA for f868bfa - Browse repository at this point
Copy the full SHA f868bfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 823f605 - Browse repository at this point
Copy the full SHA 823f605View commit details -
breaking: remove support to pass
link
header contents to pagination…… methods BREAKING CHANGE: Before a link header could be passed directly to pagination methods like `github.hasPreviousPage(linkHeaderValue)`. This was never documented and is not being used internally, so we decided to remove the functionality to simplify the code
Configuration menu - View commit details
-
Copy full SHA for e4a24c6 - Browse repository at this point
Copy the full SHA e4a24c6View commit details -
chore: remove unneeded check if headers are set
At least the accept header is always set
Configuration menu - View commit details
-
Copy full SHA for e23579e - Browse repository at this point
Copy the full SHA e23579eView commit details -
chore: remove unneeded port fallback
protocol is set in definitions.json
Configuration menu - View commit details
-
Copy full SHA for 77b64e0 - Browse repository at this point
Copy the full SHA 77b64e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 596e7ca - Browse repository at this point
Copy the full SHA 596e7caView commit details -
chore: remove code for undocumented/unusable url option
I tried to write a test for this just to make sure that somebody is not using it, but couldn’t get it to work so I assume this is some legacy code that has been forgotten to be removed
Configuration menu - View commit details
-
Copy full SHA for 2e5c03e - Browse repository at this point
Copy the full SHA 2e5c03eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 54ebd40 - Browse repository at this point
Copy the full SHA 54ebd40View commit details -
chore: remove unused code for format != json/raw
`format` is set from `requestFormat` in routes.json and definitions.json: there are only the values "raw" or the default "json"
Configuration menu - View commit details
-
Copy full SHA for 2ffd459 - Browse repository at this point
Copy the full SHA 2ffd459View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4482e6 - Browse repository at this point
Copy the full SHA b4482e6View commit details -
This is code from the ajax.org origin. There is only one parameter of type Object which is "file", and file is not a query parameter, so this code is never reached
Configuration menu - View commit details
-
Copy full SHA for 58178ca - Browse repository at this point
Copy the full SHA 58178caView commit details
There are no files selected for viewing