@backstage/core-plugin-api 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/dist/index.d.ts +260 -100
- package/dist/index.esm.js +45 -38
- package/dist/index.esm.js.map +1 -1
- package/package.json +11 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# @backstage/core-plugin-api
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 18d4f500af: Deprecated the `AnyAnalyticsContext` type and mark the `AnalyticsApi` experimental.
|
|
8
|
+
- 8a7372cfd5: Deprecated `auth0AuthApiRef`, `oauth2ApiRef`, `oidcAuthApiRef`, `samlAuthApiRef`, and marked the rest of the auth `ApiRef`s as experimental. For more information on how to address the deprecations, see https://backstage.io/docs/api/deprecations#generic-auth-api-refs.
|
|
9
|
+
- 760791a642: Renamed `AuthProvider` to `AuthProviderInfo` and add a required 'id' property to match the majority of usage. The `AuthProvider` type without the `id` property still exists but is deprecated, and all usage of it without an `id` is deprecated as well. For example, calling `createAuthRequest` without a `provider.id` is deprecated and it will be required in the future.
|
|
10
|
+
|
|
11
|
+
The following types have been renamed. The old names are still exported but deprecated, and are scheduled for removal in a future release.
|
|
12
|
+
|
|
13
|
+
- Renamed `AuthRequesterOptions` to `OAuthRequesterOptions`
|
|
14
|
+
- Renamed `AuthRequester` to `OAuthRequester`
|
|
15
|
+
- Renamed `PendingAuthRequest` to `PendingOAuthRequest`
|
|
16
|
+
|
|
17
|
+
## 0.3.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- a036b65c2f: The `IdentityApi` has received several updates. The `getUserId`, `getProfile`, and `getIdToken` have all been deprecated.
|
|
22
|
+
|
|
23
|
+
The replacement for `getUserId` is the new `getBackstageIdentity` method, which provides both the `userEntityRef` as well as the `ownershipEntityRefs` that are used to resolve ownership. Existing usage of the user ID would typically be using a fixed entity kind and namespace, for example `` `user:default/${identityApi.getUserId()}` ``, this kind of usage should now instead use the `userEntityRef` directly.
|
|
24
|
+
|
|
25
|
+
The replacement for `getProfile` is the new async `getProfileInfo`.
|
|
26
|
+
|
|
27
|
+
The replacement for `getIdToken` is the new `getCredentials` method, which provides an optional token to the caller like before, but it is now wrapped in an object for forwards compatibility.
|
|
28
|
+
|
|
29
|
+
The deprecated `idToken` field of the `BackstageIdentity` type has been removed, leaving only the new `token` field, which should be used instead. The `BackstageIdentity` also received a new `identity` field, which is a decoded version of the information within the token. Furthermore the `BackstageIdentity` has been renamed to `BackstageIdentityResponse`, with the old name being deprecated.
|
|
30
|
+
|
|
31
|
+
We expect most of the breaking changes in this update to have low impact since the `IdentityApi` implementation is provided by the app, but it is likely that some tests need to be updated.
|
|
32
|
+
|
|
33
|
+
Another breaking change is that the `SignInPage` props have been updated, and the `SignInResult` type is now deprecated. This is unlikely to have any impact on the usage of this package, but it is an important change that you can find more information about in the [`@backstage/core-app-api` CHANGELOG.md](https://github.com/backstage/backstage/blob/master/packages/core-app-api/CHANGELOG.md).
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- cd450844f6: Moved React dependencies to `peerDependencies` and allow both React v16 and v17 to be used.
|
|
38
|
+
- dcd1a0c3f4: Minor improvement to the API reports, by not unpacking arguments directly
|
|
39
|
+
- Updated dependencies
|
|
40
|
+
- @backstage/version-bridge@0.1.1
|
|
41
|
+
|
|
42
|
+
## 0.2.2
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- b291d0ed7e: Tweaked the logged deprecation warning for `createRouteRef` to hopefully make it more clear.
|
|
47
|
+
- bacb94ea8f: Documented the options of each of the extension creation functions.
|
|
48
|
+
- Updated dependencies
|
|
49
|
+
- @backstage/theme@0.2.14
|
|
50
|
+
|
|
51
|
+
## 0.2.1
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- 950b36393c: Deprecated `register` option of `createPlugin` and the `outputs` methods of the plugin instance.
|
|
56
|
+
|
|
57
|
+
Introduces the `featureFlags` property to define your feature flags instead.
|
|
58
|
+
|
|
3
59
|
## 0.2.0
|
|
4
60
|
|
|
5
61
|
### Minor Changes
|