Skip to content

Releases: octokit/oauth-app.js

v3.1.0

26 Mar 22:09
29923ac
Compare
Choose a tag to compare

3.1.0 (2021-03-26)

Features

v3.0.1

24 Mar 04:18
aff446b
Compare
Choose a tag to compare

3.0.1 (2021-03-24)

Bug Fixes

  • typescript: createNodeMiddleware() accepts both OAuthApp<"oauth-app"> and OAuthApp<"github-app"> (#208) (aff446b)

v3.0.0

23 Mar 17:11
9f0472e
Compare
Choose a tag to compare

Apologies for the breaking changes without previous deprecations. We had to compromise due to lack of time.

BREAKING CHANGES

  • stateless methods have been removed. Use @octokit/oauth-methods instead
  • You must now set clientType to "github-app" for usage with GitHub Apps
  • getNodeMiddleware() export has been removed. Use createNodeMiddleware() instead
  • const { token, scopes } = app.createToken(options) is now const { authentication: { token, scopes } } = app.createToken(options)
  • const url = app.getAuthorizationUrl() is now const { url } = app.getWebFlowAuthorizationUrl();
  • before_delete action removed for token and authorization events. We could add them back, but it would require an additional request, we'd like to see if there are people why actually use these events.

Features

  • app.getUserOctokit()
  • app.refreshToken()
  • app.scopeToken()
  • app.createToken() now supports the device flow
  • TypeScript: different types depending on clientType constructor option (OAuth App or GitHub App) (#204) (9f0472e)

v2.1.0

21 Mar 23:59
48a4085
Compare
Choose a tag to compare

2.1.0 (2021-03-21)

Features

  • createNodeMiddleware(). Deprecate getNodeMiddleware() (#206) (48a4085)

v2.0.5

15 Mar 21:26
f4cf342
Compare
Choose a tag to compare

2.0.5 (2021-03-15)

Bug Fixes

  • adapt for latest @octokit/oauth-authorization-url (#203) (f4cf342)

v2.0.4

25 Jan 20:29
Compare
Choose a tag to compare

2.0.4 (2021-01-25)

Bug Fixes

  • deps: lock file maintenance (123ba6c)

v2.0.3

13 Dec 20:21
ebec749
Compare
Choose a tag to compare

2.0.3 (2020-12-13)

Bug Fixes

v2.0.2

03 Dec 16:54
Compare
Choose a tag to compare

2.0.2 (2020-12-03)

Bug Fixes

  • README: replace :param notation with {param} (03e4bc8)

v2.0.1

02 Nov 23:48
8d54afd
Compare
Choose a tag to compare

2.0.1 (2020-11-02)

Bug Fixes

  • do not consume request before calling onUnhandledRequest (#153) (8d54afd)

v2.0.0

02 Nov 01:27
0871a92
Compare
Choose a tag to compare

2.0.0 (2020-11-02)

Features

  • context.octokit is set for all events, but unauthenticated for "token.deleted" and "authorization.deleted" (#149) (0871a92)

BREAKING CHANGES

  • Before this release, context.octokit was not set for "token.deleted" and "authorization.deleted" events