Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Releases: MiraiSubject/passport-osu

1.2.0

13 Apr 20:55
dee0345
Compare
Choose a tag to compare

Full Changelog: 1.1.1...1.2.0

  • Deprecate the type property in the StrategyOptions & StrategyOptionsWithRequest interfaces (will be removed in 6 months)
  • Add support for a custom profile url by setting userProfileUrl in the options parameter. Example:
const strat: OsuStrategy = new OsuStrategy({
    clientID,
    clientSecret,
    // If you want to read a specific mode from the user instead of 
    // the default game mode, change this to match the appropriate game mode
    userProfileUrl: 'https://osu.ppy.sh/api/v2/me/osu',
    callbackURL: callbackUrl
}, (_accessToken: string, _refreshToken: string, profile: any, cb: any) => {
    console.log(profile);
    return cb(null, profile);
});

1.1.1

06 Mar 17:12
4f68ad9
Compare
Choose a tag to compare

(1.1.0 is the same version as this but with the package.json properly updated and was only published to github package registry)

What's Changed

  • Bump glob-parent from 5.1.1 to 5.1.2 by @dependabot in #3
  • Bump passport-oauth2 from 1.5.0 to 1.6.1 by @dependabot in #4
  • Update example to be a more ready to go usable example.
  • Update all other dependencies, including devdependencies that are irrelevant for consumers. Refer to the yarn.lock file in the diff for more information.

Full Changelog: 1.0.8...1.1.1

1.0.8 - Bump lodash dependency

10 May 21:07
16f54dd
Compare
Choose a tag to compare

This release bumps the lodash dependency from 4.17.19 to 4.17.21, because of a resolved security vulnerability.

See #2 and the lodash project for more infromation.

v1.0.7 - Adds ID to PassportProfile

11 Aug 17:54
db566b4
Compare
Choose a tag to compare

This release adds the ID to the PassportProfile interface and also includes it in userProfile. The example had this but it was not here in code.

I also updated the README configuration to remove any useless code and added a Github Action to automate releases

v1.0.6

10 Aug 13:09
7427cac
Compare
Choose a tag to compare
  • Change profile output to conform with _raw and _json
  • This replaces a normal error with the InternalOAuthError
  • Includes a PassportProfile so type checking on profile is possible.

v1.0.5

10 Aug 11:47
4217c29
Compare
Choose a tag to compare

Removed

  • Access token from profile. This can be accessed as a parameter, so it was actually redundant.

Added

  • displayName in passport's profile object now returns the osu! username of the user.

(v1.0.3) 1.0.2 but for real

10 Aug 11:22
d4f8258
Compare
Choose a tag to compare
Pre-release

I am still working on making scripts that actually build the module before publishing. This release actually contains the changes from 1.0.2:

  • StrategyOptionsWithRequest is now usable in options: in the constructor
  • OAuth2Strategy.VerifyFunctionWithRequest is usable in verify: in the contructor

This may or not break the existing constructor.

1.0.1

10 Aug 10:19
065983b
Compare
Choose a tag to compare

The 1.0.0 version had some issues in Typescript because the types for passport-oauth2 were missing. I have added this as a normal dependency for now.