core-app-api: removed deprecated GithubAuth.normalizeScopes

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-02 12:26:49 +01:00
parent 843dfd1cb9
commit dbf84eee55
3 changed files with 5 additions and 17 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-app-api': minor
---
**BREAKING**: Removed the deprecated `GithubAuth.normalizeScopes` method.
-2
View File
@@ -376,8 +376,6 @@ export type FlatRoutesProps = {
export class GithubAuth {
// (undocumented)
static create(options: OAuthApiCreateOptions): typeof githubAuthApiRef.T;
// @deprecated (undocumented)
static normalizeScope(scope?: string): Set<string>;
}
// @public
@@ -47,19 +47,4 @@ export default class GithubAuth {
defaultScopes,
});
}
/**
* @deprecated This method is deprecated and will be removed in a future release.
*/
static normalizeScope(scope?: string): Set<string> {
if (!scope) {
return new Set();
}
const scopeList = Array.isArray(scope)
? scope
: scope.split(/[\s|,]/).filter(Boolean);
return new Set(scopeList);
}
}