@octokit/rest
22.0.1 · 31 Oct 2025MIT27.9M / weekRepositoryHomepagenpmAtom feed
290 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 15.x
15.6.1
19 May 2018Adds "machine-man" preview header when authenticated as installation
15.6.0
16 May 2018.checks.createSuite()and.checks.requestSuites()
15.5.1
15 May 2018Typescript definitions for "app" authentication
15.5.0
14 May 2018- Deprecated
Authentication type "app". "integration" is now deprecated
routes: default header for checks APIs
Amend accept header for github apps, keep custom accept headers intact
Bug Fixes
routes: default header for checks APIs
Amend accept header for github apps, keep custom accept headers intact
Workaround for github.activity.markNotificationsAsRead()
Features
- Deprecated
Authentication type "app". "integration" is now deprecated
15.4.1
11 May 2018validate: default to empty member array if optional parent parameter is not set
15.4.0
8 May 2018Checks APIs
see blog.github.com/2018-05-07-introducing-checks-a…
15.3.0
1 May 2018encodingparam not required for gitdata.createBlob()Add missing owner/repo parameters to getReference
Add missing pagination parameters
This release has a lot of changes to
lib/routes.json. The old and newroutes.jsonare attached to this release so you can use your favorite JSON Diff tool to compare them (like [jsondiff](tlrobinson.net/projects/javascript-fun/jsondiff/ by Tom Robinson)Bug Fixes
Routes
encodingparam not required for gitdata.createBlob()Add missing owner/repo parameters to getReference
Add missing pagination parameters
Admin pre-receive environment routes
Color & name params not required for issues.updateLabel()
Fix repo installations paths
Replace
bodyparam withassigneesPath fixes for lfs & large import files routes
Remove invalid
user_idparameter fromcreateInstallationToken&getInstallationRepositoriesRemove invalid pagination parameters
Title parameter not required for issues.updateMilestone()
Various fixes
Add ?recursive enum parameter to "Get tree"
Validation
Parse parameter value to integer before checking for enum
Throw "cannot be null" error correctly
Features
Handle deprecation and aliasing of method names
Nested properties in endpoint definitions
15.2.7
30 Apr 2018Handle empty responses to HEAD requests
15.2.6
29 Mar 2018Throw on 304
15.2.5
19 Mar 2018Octokit.apps.getInstallations() does not throw TypeError
15.2.4
16 Mar 2018typescript: update types to reflect client option changes
15.2.3
15 Mar 2018typescript: agent client option is optional
15.2.2
13 Mar 2018Proxy without setting baseUrl
15.2.1
12 Mar 2018Clarify deprecation warning for
protocol,bost,portandpathPrefix
15.2.0
11 Mar 2018- Deprecated
options.headers - Deprecated
options.port - Deprecated
options.pathPrefix
Features
Options.baseUrl
Deprecations
Client options
- Deprecated
options.headers - Deprecated
options.port - Deprecated
options.pathPrefix - Deprecated
options.host
15.1.9
9 Mar 2018Set error.headers if present
15.1.8
8 Mar 2018Remove obsolete github.search.email() API
15.1.7
6 Mar 2018Remove milestone from issue
15.1.6
6 Mar 2018options.proxyDo not alter options passed to endpoint
15.1.3
2 Mar 2018Inline
is-array-bufferfor webpack compatibilityrequest: require http(s).Agent in wepback-compatible way
15.1.2
26 Feb 2018Octokit.orgs.createTeam({parent_team_id})
15.1.0
25 Feb 2018options.agentfor advanced request options in Node
15.0.4
25 Feb 2018Handle binary response correctly
15.0.3
24 Feb 2018Add missing params to pullRequest.createComment:
commit_id,path,position
15.0.2
23 Feb 2018Set options.title as required for octokit.pullRequests.create(options)
15.0.1
17 Feb 2018- Breaking
Before, methods like
octokit.issues.deleteLabel()returned an empty string for{data}. They now correctly returnundefined bundle size: only require what’s needed from lodash
fetch-based request for browser
(v15.0.0 was published by accident and unpublished shortly after, sorry)
Breaking Changes
- Breaking
Before, methods like
octokit.issues.deleteLabel()returned an empty string for{data}. They now correctly returnundefined
Features
bundle size: only require what’s needed from lodash
fetch-based request for browser
package: build with webpack, now with source maps & gzipped file, better bundle report
Bug Fixes
Do not remove port number from passed URL
Do not return empty strings for empty responses
Handle redirect correctly
Load all plugins again
15.0.0
17 Feb 2018- 14.x
14.0.9
9 Feb 2018Include stacktraces for each type of error
Remove
HttpErrorsub-classesSet the error code as a number for all errors
Bug Fixes
Include stacktraces for each type of error
Remove
HttpErrorsub-classesSet the error code as a number for all errors
Use ES6 classes to extend Error
14.0.8
31 Jan 2018typescript: ReposUploadAssetParams.file type definition
14.0.7
28 Jan 2018Date parsing
14.0.6
27 Jan 2018Correctly upload asset if file is Buffer/ArrayBuffer
14.0.5
22 Jan 2018Typescript definition regression
14.0.4
19 Jan 2018Pagination passes headers
14.0.3
18 Jan 2018Typescript definition syntax errors
14.0.2
18 Jan 2018travis: build flow & typescript definitions before semantic-release
14.0.1
18 Jan 2018package: publish with TypeScript / Flow definitions
14.0.0
17 Jan 2018- Breaking
npm install @octokit/rest - Breaking
npm uninstall github - Breaking
Replace
require('github')withrequire('@octokit/rest')
Breaking changes
The package has been renamed from
githubto@octokit/rest.To upgrade
- Breaking
npm install @octokit/rest - Breaking
npm uninstall github - Breaking
Replace
require('github')withrequire('@octokit/rest')
That’s it, there are no functional changes in the public APIs compared to
github@13.Debug logs
DEBUG=node-github*is nowDEBUG=octokit*.In case you enabled debug logs, make sure to adapt the
DEBUGenvironment variable accordingly.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.