@backstage/core-app-api 1.17.0-next.1 → 1.17.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @backstage/core-app-api
2
2
 
3
+ ## 1.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1e0230e: Support custom `AuthConnector` for `OAuth2`.
8
+
9
+ A user can pass their own `AuthConnector` implementation in `OAuth2` constructor.
10
+ In which case the session manager will use that instead of the `DefaultAuthConnector` to interact with the
11
+ authentication provider.
12
+
13
+ A custom `AuthConnector` may call the authentication provider from the front-end, store and retrieve tokens
14
+ in the session storage, for example, and otherwise send custom requests to the authentication provider and
15
+ handle its responses.
16
+
17
+ Note, that if the custom `AuthConnector` transforms scopes returned from the authentication provider,
18
+ the transformation must be the same as `OAuth2CreateOptions#scopeTransform` passed to `OAuth2` constructor.
19
+ See creating `DefaultAuthConnector` in `OAuth2#create(...)` for an example.
20
+
21
+ ### Patch Changes
22
+
23
+ - 73f6cc3: Updated `I18nextTranslationApi` to support interpolation of JSX elements.
24
+ - cc119b2: Fixed an issue causing `OAuthRequestDialog` to re-render on mount.
25
+ - Updated dependencies
26
+ - @backstage/core-plugin-api@1.10.7
27
+ - @backstage/config@1.3.2
28
+ - @backstage/types@1.2.1
29
+ - @backstage/version-bridge@1.0.11
30
+
3
31
  ## 1.17.0-next.1
4
32
 
5
33
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/core-app-api",
3
- "version": "1.17.0-next.1",
3
+ "version": "1.17.0",
4
4
  "description": "Core app API used by Backstage apps",
5
5
  "backstage": {
6
6
  "role": "web-library"
@@ -50,10 +50,10 @@
50
50
  "test": "backstage-cli package test"
51
51
  },
52
52
  "dependencies": {
53
- "@backstage/config": "1.3.2",
54
- "@backstage/core-plugin-api": "1.10.7-next.0",
55
- "@backstage/types": "1.2.1",
56
- "@backstage/version-bridge": "1.0.11",
53
+ "@backstage/config": "^1.3.2",
54
+ "@backstage/core-plugin-api": "^1.10.7",
55
+ "@backstage/types": "^1.2.1",
56
+ "@backstage/version-bridge": "^1.0.11",
57
57
  "@types/prop-types": "^15.7.3",
58
58
  "history": "^5.0.0",
59
59
  "i18next": "^22.4.15",
@@ -64,8 +64,8 @@
64
64
  "zod": "^3.22.4"
65
65
  },
66
66
  "devDependencies": {
67
- "@backstage/cli": "0.32.1-next.3",
68
- "@backstage/test-utils": "1.7.8-next.2",
67
+ "@backstage/cli": "^0.32.1",
68
+ "@backstage/test-utils": "^1.7.8",
69
69
  "@testing-library/dom": "^10.0.0",
70
70
  "@testing-library/jest-dom": "^6.0.0",
71
71
  "@testing-library/react": "^16.0.0",