@backstage/plugin-auth-node 0.7.0-next.2 → 0.7.1-next.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.
- package/CHANGELOG.md +50 -0
- package/package.json +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @backstage/plugin-auth-node
|
|
2
2
|
|
|
3
|
+
## 0.7.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 744fa1f: Removed duplicated entries that appeared in both `dependencies` and `devDependencies`.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/errors@1.3.1-next.0
|
|
10
|
+
- @backstage/backend-plugin-api@1.9.1-next.0
|
|
11
|
+
- @backstage/catalog-client@1.15.1-next.0
|
|
12
|
+
- @backstage/catalog-model@1.8.1-next.0
|
|
13
|
+
- @backstage/config@1.3.8-next.0
|
|
14
|
+
- @backstage/types@1.2.2
|
|
15
|
+
|
|
16
|
+
## 0.7.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- fa55078: **BREAKING**: Refactored `SignInResolverFactoryOptions` to use a schema-first generic pattern, following Zod's [recommended approach](https://zod.dev/library-authors?id=how-to-accept-user-defined-schemas#how-to-accept-user-defined-schemas) for writing generic functions. The type parameters changed from `<TAuthResult, TOptionsOutput, TOptionsInput>` to `<TAuthResult, TSchema extends ZodType>`.
|
|
21
|
+
|
|
22
|
+
This fixes "Type instantiation is excessively deep and possibly infinite" errors that occurred when the Zod version in a user's project did not align with the one in Backstage core.
|
|
23
|
+
|
|
24
|
+
If you use `createSignInResolverFactory` without explicit type parameters (the typical usage), no changes are needed:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
// This usage is unchanged
|
|
28
|
+
createSignInResolverFactory({
|
|
29
|
+
optionsSchema: z.object({ domain: z.string() }).optional(),
|
|
30
|
+
create(options = {}) {
|
|
31
|
+
/* ... */
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
If you reference `SignInResolverFactoryOptions` with explicit type parameters, update as follows:
|
|
37
|
+
|
|
38
|
+
```diff
|
|
39
|
+
- SignInResolverFactoryOptions<MyAuthResult, MyOutput, MyInput>
|
|
40
|
+
+ SignInResolverFactoryOptions<MyAuthResult, typeof mySchema>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 9244b70: Added `OAuthAuthenticatorLogoutResult` type. The `logout` method on `OAuthAuthenticator` can now optionally return `{ logoutUrl }` to trigger a browser redirect after sign-out. This allows providers like Auth0 to clear their session cookies by redirecting to their logout endpoint.
|
|
46
|
+
- Updated dependencies
|
|
47
|
+
- @backstage/backend-plugin-api@1.9.0
|
|
48
|
+
- @backstage/errors@1.3.0
|
|
49
|
+
- @backstage/catalog-model@1.8.0
|
|
50
|
+
- @backstage/catalog-client@1.15.0
|
|
51
|
+
- @backstage/config@1.3.7
|
|
52
|
+
|
|
3
53
|
## 0.7.0-next.2
|
|
4
54
|
|
|
5
55
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-auth-node",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1-next.0",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "node-library",
|
|
6
6
|
"pluginId": "auth",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"test": "backstage-cli package test"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@backstage/backend-plugin-api": "1.9.
|
|
42
|
-
"@backstage/catalog-client": "1.
|
|
43
|
-
"@backstage/catalog-model": "1.
|
|
44
|
-
"@backstage/config": "1.3.
|
|
45
|
-
"@backstage/errors": "1.3.
|
|
41
|
+
"@backstage/backend-plugin-api": "1.9.1-next.0",
|
|
42
|
+
"@backstage/catalog-client": "1.15.1-next.0",
|
|
43
|
+
"@backstage/catalog-model": "1.8.1-next.0",
|
|
44
|
+
"@backstage/config": "1.3.8-next.0",
|
|
45
|
+
"@backstage/errors": "1.3.1-next.0",
|
|
46
46
|
"@backstage/types": "1.2.2",
|
|
47
47
|
"@types/express": "^4.17.6",
|
|
48
48
|
"@types/passport": "^1.0.3",
|
|
@@ -55,12 +55,11 @@
|
|
|
55
55
|
"zod-validation-error": "^4.0.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@backstage/backend-defaults": "0.
|
|
59
|
-
"@backstage/backend-test-utils": "1.11.
|
|
60
|
-
"@backstage/cli": "0.36.
|
|
58
|
+
"@backstage/backend-defaults": "0.17.1-next.0",
|
|
59
|
+
"@backstage/backend-test-utils": "1.11.3-next.0",
|
|
60
|
+
"@backstage/cli": "0.36.2-next.0",
|
|
61
61
|
"cookie-parser": "^1.4.6",
|
|
62
62
|
"express-promise-router": "^4.1.1",
|
|
63
|
-
"lodash": "^4.17.21",
|
|
64
63
|
"msw": "^1.0.0",
|
|
65
64
|
"supertest": "^7.0.0",
|
|
66
65
|
"uuid": "^11.0.0"
|