Version Packages

This commit is contained in:
github-actions[bot]
2026-04-14 14:57:31 +00:00
parent 9f24941b49
commit 93e643d142
603 changed files with 5867 additions and 1607 deletions
+37
View File
@@ -1,5 +1,42 @@
# @backstage/plugin-auth-node
## 0.7.0
### Minor Changes
- 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>`.
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.
If you use `createSignInResolverFactory` without explicit type parameters (the typical usage), no changes are needed:
```ts
// This usage is unchanged
createSignInResolverFactory({
optionsSchema: z.object({ domain: z.string() }).optional(),
create(options = {}) {
/* ... */
},
});
```
If you reference `SignInResolverFactoryOptions` with explicit type parameters, update as follows:
```diff
- SignInResolverFactoryOptions<MyAuthResult, MyOutput, MyInput>
+ SignInResolverFactoryOptions<MyAuthResult, typeof mySchema>
```
### Patch Changes
- 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.
- Updated dependencies
- @backstage/backend-plugin-api@1.9.0
- @backstage/errors@1.3.0
- @backstage/catalog-model@1.8.0
- @backstage/catalog-client@1.15.0
- @backstage/config@1.3.7
## 0.7.0-next.2
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-auth-node",
"version": "0.7.0-next.2",
"version": "0.7.0",
"backstage": {
"role": "node-library",
"pluginId": "auth",