@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.
16.27.3
31 May 2019typescript: Octokit#plugin argument type for plugins
16.27.2
31 May 2019author.*andcommitter.*parameter validation for.repos.deleteFile()
16.27.1
29 May 2019Typo in deprecation message for
.repos.getCommitRefSha()
16.27.0
23 May 2019- Deprecated
octokit.repos.getCommitRefSha()is deprecated, useoctokit.repos.getCommit()instead
16.26.0
17 May 2019.repos.enableVulnerabilityAlerts().repos.disableVulnerabilityAlerts()sourceparameter for.repos.enablePagesSite()
16.25.6
16 May 2019package: update @octokit/request to version 4.0.1
16.25.5
15 May 2019package: update deprecation to version 2.0.0
16.25.4
12 May 2019package: update @octokit/request to version 3.0.3
16.25.3
8 May 2019package: update @octokit/request to version 3.0.2
16.25.2
4 May 2019Do not mutate options passed to endpoint methods
16.25.1
30 Apr 2019package: update @octokit/request to version 3.0.1
16.25.0
19 Apr 2019Apps.deleteInstallation({ installation_id })
16.24.3
17 Apr 2019Throw 400 Bad Request error when
octokit.issues.get()without parameters
16.24.2
16 Apr 2019Implement deprecation for parameters in
.endpoint()and.endpoint.merge()
16.24.1
14 Apr 2019:commit_shaparameter for.git.getCommit(). Deprecates:sha:issue_number,:milestone_number,:pull_numberparameters. Deprecates:number.repos.listBranchesForHeadCommit()
Features
:commit_shaparameter for.git.getCommit(). Deprecates:sha:issue_number,:milestone_number,:pull_numberparameters. Deprecates:number.repos.listBranchesForHeadCommit().repos.listPullRequestsAssociatedWithCommit()
Bug Fixes
Parameter deprecation bug
16.23.5
14 Apr 2019.paginate() with results namespace (GET /installation/repositories, single page response)
16.23.4
9 Apr 2019package: update @octokit/request to version 3.0.0
16.23.2
2 Apr 2019Normalize pagination for responses with repository_selection property
16.23.1
2 Apr 2019package: atob-lite
16.23.0
2 Apr 2019options.authcan be set to token without a prefix
16.22.0
30 Mar 2019.teams.getByName()
16.21.1
28 Mar 2019Assure single object/array responses for
.git.getRef()/.git.listRefs()
16.21.0
26 Mar 2019author.*,committer.*,signatureparameters for.git.createCommit()draftargument for creating a pull requestCall
auth.on2faagain if OTP becomes invalid
16.20.0
20 Mar 2019- Deprecated
Deprecate
.total_count,.incomplete_resultsand.<namespace>properties from paginated results Normalize pagination results for all endpoints which paginate with a namespace
16.18.1
14 Mar 2019two-factor auth: persist one-time password header on subsequent requests
16.18.0
14 Mar 2019Media type format and previews
octokit.issues.get({ owner, repo, number, mediaType: { format: 'full+json', previews: ['symmetra'] } })don’t swallow errors thrown in options.auth function
16.17.1
13 Mar 2019Log a deprecations only once, and not as Error
Set
machine-manpreview for.apps.listRepos()and.apps.getBySlug()
16.17.0
7 Mar 2019- Deprecated
octokit.licenses.list() octokit.licenses.listCommonlyUsed()
16.16.4
4 Mar 2019package: update before-after-hook
16.16.2
27 Feb 2019Paginate search results
16.16.1
27 Feb 2019"affiliation" is not an enum parameter
16.16.0
19 Feb 2019.projects.createForAuthenticatedUser(), .projects.listForUser()
16.15.1
19 Feb 2019don’t swallow errors thrown in options.auth function
16.15.0
2 Feb 2019nameparameter no longer required foroctokit.repos.createHook()sortanddirectionparameters foroctokit.repos.listForOrg()
16.14.1
1 Feb 2019typescript: reference esnext.asynciterable
16.14.0
31 Jan 2019Custom logging
octokit.log.debug()octokit.log.info()
Features
Custom logging
This release adds 4 new methods
octokit.log.debug()octokit.log.info()octokit.log.warn()octokit.log.error()
They can be configured using the
logclient option. By default,octokit.log.debug()andoctokit.log.info()are no-ops, while the other two callconsole.warn()andconsole.error()respectively.This can be used for debugging. The simplest way is to set the
logoption toconsoleconst octokit = require("@octokit/rest")({ log: console }) console.request("/")This will log
request { method: "GET", baseUrl: "https://api.github.com", headers: { accept: "application/vnd.github.v3+json", "user-agent": "octokit.js/0.0.0-semantically-released Node.js/10.15.0 (macOS Mojave; x64)" }, request: {}, url: "/" } GET / - 200 in 514msIf you like to support a configurable log level, we recommend using the console-log-level module
const octokit = require("@octokit/rest")({ log: require("console-log-level")({ level: "info" }) }) console.request("/")This will only log
GET / - 200 in 514ms
16.13.4
29 Jan 2019typescript: auth.client_id, auth.client_secret → auth.clientId, auth.clientSecret
16.13.3
26 Jan 2019typescript: accept
{ auth: () => }constructor option
16.13.2
26 Jan 2019typescript: two-factor authentication is on2fa() not on2Fa()
16.13.1
22 Jan 2019typescript: update typings with new options for constructor
16.13.0
21 Jan 2019"auth" constructor options
16.12.0
21 Jan 2019userAgent, previews and request options
Features
userAgent, previews and request options
In preparation for v17, instead of
const octokit = new Octokit({ headers: { accept: 'application/vnd.github.jean-grey-preview+json,application/vnd.github.symmetra-preview+json', 'user-agent': 'octokit/rest.js v1.2.3' // v1.2.3 will be current version }, timeout: 0, agent: undefined })the new options will be
const octokit = new Octokit({ userAgent: 'myapp v1.2.3', previews: [ 'jean-grey-preview', 'symmetra-preview' ], request: { timeout: 0, agent: undefined } })The old options will continue to work, but will be deprecated. The
baseUrloption will remain the same.16.11.0
20 Jan 2019Handle invalid otp for 2FA
Resolve requsets with
response.url
16.10.0
17 Jan 2019two-factor authentication
16.9.0
16 Jan 2019- Deprecated
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint()-octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint()is now deprecated - Deprecated
octokit.search.issuesAndPullRequests()-octokit.search.issues()is now deprecated octokit.repos.updateReview({owner,repo,number,review_id,body})
Features
- Deprecated
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint()-octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint()is now deprecated octokit.repos.updateReview({owner,repo,number,review_id,body})- Deprecated
octokit.search.issuesAndPullRequests()-octokit.search.issues()is now deprecated
Bug Fixes
octokit.projects.update()- invalidpublicparameter replaced withprivateoctokit.search.repos()-sortparameter now accepts'help-wanted-issues'
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.