Packages

@octokit/rest

22.0.1 · 31 Oct 2025MIT27.9M / weekRepositoryHomepagenpmAtom feed

Your version

16.29.0

19 Sep 2019Where it was published

16.43.2 is the newest release of 16.x.

In short

9 new8 fixed

Release note

Bug Fixes

  • luke-cage header is not required

  • restrictions.teams and restrictions.users are required for `octokit.repos.updateBranchProtection()

  • Add deprecation messages for octokit.teams.{add,get,remove}Member()

  • Add enum for privacy parameter for octokit.teams.edit()

  • Alias for "sha" is "ref" for octokit.repos.getCommit()

  • Remove incorrect page/per_page parameters from PATCh requests

  • Remove incorrect page/per_page parameters from POST requests

  • Remove unused page and per_page parameters from octokit.repos.listProtectedBranchTeamRestrictions()

  • Set "luke-cage" preview request for branch protection endpoint methods

  • Validate enum values always as strings

Features

  • octokit.pulls.createReviewCommentReply()

  • deprecation: octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment()

  • deprecation: octokit.repos.listProtectedBranchTeamRestrictions & octokit.repos.listTeamsWithAccessToProtectedBranch -> octokit.repos.getTeamsWithAccessToProtectedBranch

  • deprecation: octokit.repos.listProtectedBranchUserRestrictions & octokit.repos.listUsersWithAccessToProtectedBranch -> octokit.repos.getUsersWithAccessToProtectedBranch

  • octokit.repos.addProtectedBranchAppRestrictions(), octokit.repos.removeProtectedBranchAppRestrictions(), octokit.repos.replaceProtectedBranchAppRestrictions()

  • octokit.repos.createDispatchEvent()

  • octokit.repos.listAppsWithAccessToProtectedBranch() -> octokit.repos.getAppsWithAccessToProtectedBranch()

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.