Releases: MiraiSubject/passport-osu
1.2.0
Full Changelog: 1.1.1...1.2.0
- Deprecate the
type
property in theStrategyOptions
&StrategyOptionsWithRequest
interfaces (will be removed in 6 months) - Add support for a custom profile url by setting
userProfileUrl
in theoptions
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
(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
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
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
- Change profile output to conform with _raw and _json
- This replaces a normal error with the InternalOAuthError
- Includes a
PassportProfile
so type checking onprofile
is possible.
v1.0.5
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
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 inoptions:
in the constructorOAuth2Strategy.VerifyFunctionWithRequest
is usable inverify:
in the contructor
This may or not break the existing constructor.
1.0.1
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.