UNPKG

@backstage/backend-test-utils

Version:

Test helpers library for Backstage backends

1,415 lines (1,081 loc) • 99 kB
# @backstage/backend-test-utils ## 1.11.3 ### Patch Changes - 7fb12b8: Added a new tracing service mock to be leveraged in tests - ada7df7: Fixed `mockCredentials` to include the internal `version: 'v1'` field on all credential objects (`none()`, `user()`, `limitedUser()`, `service()`), and fixed `user()` to encode the user entity ref into the token (matching `user.token(ref)` behavior). This makes mock credentials compatible with `toInternalBackstageCredentials()`, which validates the version field, and ensures that credentials for different users produce different tokens. - e9b78e9: Removed the `uuid` dependency and replaced usage with the built-in `crypto.randomUUID()`. - 6209065: Added `context` and `propagation` to the alpha `TracingService`. Plugins can bridge OpenTelemetry context across async boundaries via `tracing.propagation.extract(tracing.context.active(), carrier)` followed by `tracing.context.with(ctx, fn)`, and read propagated baggage via `tracing.propagation.getActiveBaggage()` or `tracing.propagation.getBaggage(ctx)`. - Updated dependencies - @backstage/errors@1.3.1 - @backstage/backend-plugin-api@1.9.1 - @backstage/backend-defaults@0.17.1 - @backstage/backend-app-api@1.7.0 - @backstage/plugin-auth-node@0.7.1 - @backstage/plugin-permission-common@0.9.9 - @backstage/config@1.3.8 - @backstage/plugin-events-node@0.4.22 ## 1.11.3-next.2 ### Patch Changes - 7fb12b8: Added a new tracing service mock to be leveraged in tests - Updated dependencies - @backstage/backend-plugin-api@1.9.1-next.1 - @backstage/backend-defaults@0.17.1-next.2 ## 1.11.3-next.1 ### Patch Changes - e9b78e9: Removed the `uuid` dependency and replaced usage with the built-in `crypto.randomUUID()`. - Updated dependencies - @backstage/backend-defaults@0.17.1-next.1 - @backstage/plugin-auth-node@0.7.1-next.1 - @backstage/plugin-permission-common@0.9.9-next.1 ## 1.11.3-next.0 ### Patch Changes - Updated dependencies - @backstage/errors@1.3.1-next.0 - @backstage/backend-app-api@1.7.0-next.0 - @backstage/backend-defaults@0.17.1-next.0 - @backstage/plugin-auth-node@0.7.1-next.0 - @backstage/backend-plugin-api@1.9.1-next.0 - @backstage/config@1.3.8-next.0 - @backstage/plugin-events-node@0.4.22-next.0 - @backstage/plugin-permission-common@0.9.9-next.0 - @backstage/types@1.2.2 ## 1.11.2 ### Patch Changes - 4559806: Added support for typed `examples` on actions registered via the actions registry. Action authors can now provide examples with compile-time-checked `input` and `output` values that match their schema definitions. - f44c6bd: Deduplicated internal readiness-polling helpers used by the database and cache test infrastructure. - Updated dependencies - @backstage/backend-plugin-api@1.9.0 - @backstage/backend-defaults@0.17.0 - @backstage/errors@1.3.0 - @backstage/plugin-auth-node@0.7.0 - @backstage/backend-app-api@1.6.1 - @backstage/config@1.3.7 - @backstage/plugin-events-node@0.4.21 - @backstage/plugin-permission-common@0.9.8 ## 1.11.2-next.2 ### Patch Changes - Updated dependencies - @backstage/errors@1.3.0-next.0 - @backstage/plugin-auth-node@0.7.0-next.2 - @backstage/backend-app-api@1.6.1-next.2 - @backstage/backend-defaults@0.16.1-next.2 - @backstage/backend-plugin-api@1.9.0-next.2 - @backstage/config@1.3.7-next.0 - @backstage/plugin-events-node@0.4.21-next.2 - @backstage/plugin-permission-common@0.9.8-next.0 ## 1.11.2-next.1 ### Patch Changes - 4559806: Added support for typed `examples` on actions registered via the actions registry. Action authors can now provide examples with compile-time-checked `input` and `output` values that match their schema definitions. - Updated dependencies - @backstage/backend-plugin-api@1.9.0-next.1 - @backstage/backend-defaults@0.16.1-next.1 - @backstage/plugin-auth-node@0.7.0-next.1 - @backstage/backend-app-api@1.6.1-next.1 - @backstage/plugin-events-node@0.4.21-next.1 ## 1.11.2-next.0 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.16.1-next.0 - @backstage/backend-plugin-api@1.8.1-next.0 - @backstage/backend-app-api@1.6.1-next.0 - @backstage/plugin-auth-node@0.6.15-next.0 - @backstage/plugin-events-node@0.4.21-next.0 - @backstage/config@1.3.6 - @backstage/errors@1.2.7 - @backstage/types@1.2.2 - @backstage/plugin-permission-common@0.9.7 ## 1.11.1 ### Patch Changes - dee4283: Added `pluginId` field to `ActionsServiceAction` type, populated from the registering plugin's metadata. - 164711a: Added `cancelTask` to `MockSchedulerService` and mock scheduler service factory. - 62f0a53: Fixed error forwarding in the actions registry so that known errors like `InputError` and `NotFoundError` thrown by actions preserve their original status codes and messages instead of being wrapped in `ForwardedError` and coerced to 500. - a49a40d: Updated dependency `zod` to `^3.25.76 || ^4.0.0` & migrated to `/v3` or `/v4` imports. - 1ee5b28: Adds a new metrics service mock to be leveraged in tests - Updated dependencies - @backstage/backend-plugin-api@1.8.0 - @backstage/backend-defaults@0.16.0 - @backstage/plugin-permission-common@0.9.7 - @backstage/plugin-auth-node@0.6.14 - @backstage/backend-app-api@1.6.0 - @backstage/plugin-events-node@0.4.20 ## 1.11.1-next.2 ### Patch Changes - 164711a: Added `cancelTask` to `MockSchedulerService` and mock scheduler service factory. - Updated dependencies - @backstage/backend-plugin-api@1.8.0-next.1 - @backstage/backend-defaults@0.16.0-next.2 - @backstage/backend-app-api@1.6.0-next.1 - @backstage/plugin-auth-node@0.6.14-next.2 - @backstage/plugin-events-node@0.4.20-next.1 ## 1.11.1-next.1 ### Patch Changes - 62f0a53: Fixed error forwarding in the actions registry so that known errors like `InputError` and `NotFoundError` thrown by actions preserve their original status codes and messages instead of being wrapped in `ForwardedError` and coerced to 500. - Updated dependencies - @backstage/backend-defaults@0.16.0-next.1 - @backstage/plugin-auth-node@0.6.14-next.1 - @backstage/backend-app-api@1.5.1-next.0 - @backstage/backend-plugin-api@1.7.1-next.0 - @backstage/config@1.3.6 - @backstage/errors@1.2.7 - @backstage/types@1.2.2 - @backstage/plugin-events-node@0.4.20-next.0 - @backstage/plugin-permission-common@0.9.6 ## 1.11.1-next.0 ### Patch Changes - 1ee5b28: Adds a new metrics service mock to be leveraged in tests - Updated dependencies - @backstage/backend-defaults@0.15.3-next.0 - @backstage/backend-plugin-api@1.7.1-next.0 - @backstage/backend-app-api@1.5.1-next.0 - @backstage/config@1.3.6 - @backstage/errors@1.2.7 - @backstage/types@1.2.2 - @backstage/plugin-auth-node@0.6.14-next.0 - @backstage/plugin-events-node@0.4.20-next.0 - @backstage/plugin-permission-common@0.9.6 ## 1.11.0 ### Minor Changes - 42abfb1: Added `createServiceMock`, a public utility for creating `ServiceMock` instances for custom service refs. This allows plugin authors to define mock creators for their own services following the same pattern as the built-in `mockServices` mocks. ### Patch Changes - f1d29b4: Updated `startTestBackend` to support factory-based extension points (v1.1 format) in addition to the existing direct implementation format. - 7455dae: Use node prefix on native imports - 68eb322: Added `@types/jest` as an optional peer dependency, since jest types are exposed in the public API surface. - 69d880e: Bump to latest zod to ensure it has the latest features - Updated dependencies - @backstage/backend-app-api@1.5.0 - @backstage/backend-plugin-api@1.7.0 - @backstage/backend-defaults@0.15.2 - @backstage/plugin-auth-node@0.6.13 - @backstage/plugin-permission-common@0.9.6 - @backstage/plugin-events-node@0.4.19 ## 1.11.0-next.1 ### Minor Changes - 42abfb1: Added `createServiceMock`, a public utility for creating `ServiceMock` instances for custom service refs. This allows plugin authors to define mock creators for their own services following the same pattern as the built-in `mockServices` mocks. ### Patch Changes - 68eb322: Added `@types/jest` as an optional peer dependency, since jest types are exposed in the public API surface. - Updated dependencies - @backstage/backend-app-api@1.5.0-next.1 - @backstage/backend-defaults@0.15.2-next.1 - @backstage/backend-plugin-api@1.7.0-next.1 - @backstage/plugin-auth-node@0.6.13-next.1 - @backstage/plugin-events-node@0.4.19-next.0 ## 1.10.4-next.0 ### Patch Changes - f1d29b4: Updated `startTestBackend` to support factory-based extension points (v1.1 format) in addition to the existing direct implementation format. - 7455dae: Use node prefix on native imports - 69d880e: Bump to latest zod to ensure it has the latest features - Updated dependencies - @backstage/backend-plugin-api@1.7.0-next.0 - @backstage/backend-defaults@0.15.1-next.0 - @backstage/plugin-auth-node@0.6.12-next.0 - @backstage/backend-app-api@1.5.0-next.0 - @backstage/plugin-permission-common@0.9.5-next.0 - @backstage/plugin-events-node@0.4.19-next.0 - @backstage/config@1.3.6 - @backstage/errors@1.2.7 - @backstage/types@1.2.2 ## 1.10.3 ### Patch Changes - 872eb91: Upgrade `zod-to-json-schema` to latest version - Updated dependencies - @backstage/backend-defaults@0.15.0 - @backstage/backend-plugin-api@1.6.1 - @backstage/backend-app-api@1.4.1 - @backstage/plugin-auth-node@0.6.11 - @backstage/plugin-permission-common@0.9.4 ## 1.10.3-next.1 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.15.0-next.2 - @backstage/backend-app-api@1.4.0 - @backstage/plugin-auth-node@0.6.10 ## 1.10.3-next.0 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.14.1-next.0 - @backstage/backend-app-api@1.4.0 - @backstage/backend-plugin-api@1.6.0 - @backstage/config@1.3.6 - @backstage/errors@1.2.7 - @backstage/types@1.2.2 - @backstage/plugin-auth-node@0.6.10 - @backstage/plugin-events-node@0.4.18 - @backstage/plugin-permission-common@0.9.3 ## 1.10.2 ### Patch Changes - de96a60: chore(deps): bump `express` from 4.21.2 to 4.22.0 - 8be23a4: Switched `textextensions` dependency for `text-extensions`. - 5a737e1: Fix PostgreSQL 18 `TestDatabases` by pinning the data directory - Updated dependencies - @backstage/plugin-auth-node@0.6.10 - @backstage/backend-defaults@0.14.0 - @backstage/plugin-events-node@0.4.18 - @backstage/backend-app-api@1.4.0 - @backstage/backend-plugin-api@1.6.0 ## 1.10.2-next.1 ### Patch Changes - de96a60: chore(deps): bump `express` from 4.21.2 to 4.22.0 - 8be23a4: Switched `textextensions` dependency for `text-extensions`. - 5a737e1: Fix PostgreSQL 18 `TestDatabases` by pinning the data directory - Updated dependencies - @backstage/backend-defaults@0.14.0-next.1 - @backstage/plugin-auth-node@0.6.10-next.1 - @backstage/plugin-events-node@0.4.18-next.1 - @backstage/backend-plugin-api@1.6.0-next.1 - @backstage/backend-app-api@1.4.0-next.1 - @backstage/config@1.3.6 - @backstage/errors@1.2.7 - @backstage/types@1.2.2 - @backstage/plugin-permission-common@0.9.3 ## 1.10.1-next.0 ### Patch Changes - Updated dependencies - @backstage/plugin-auth-node@0.6.10-next.0 - @backstage/backend-app-api@1.4.0-next.0 - @backstage/backend-defaults@0.14.0-next.0 - @backstage/backend-plugin-api@1.5.1-next.0 - @backstage/plugin-events-node@0.4.18-next.0 - @backstage/config@1.3.6 - @backstage/errors@1.2.7 - @backstage/types@1.2.2 - @backstage/plugin-permission-common@0.9.3 ## 1.10.0 ### Minor Changes - d57b13b: Added support for Postgres 18 to the available `TestDatabases`. Note that the set of _default_ databases to test against for users of the `TestDatabases` class was also updated to include Postgres 14 and 18, instead of 13 and 17. If you need to override this, you can pass in an explicit `ids` argument, for example `ids: ['POSTGRES_17', 'POSTGRES_13', 'SQLITE_3']`. ### Patch Changes - f3001fd: Tweak some of the mock services to have more precise types - 05f60e1: Refactored constructor parameter properties to explicit property declarations for compatibility with TypeScript's `erasableSyntaxOnly` setting. This internal refactoring maintains all existing functionality while ensuring TypeScript compilation compatibility. - Updated dependencies - @backstage/backend-defaults@0.13.1 - @backstage/backend-plugin-api@1.5.0 - @backstage/backend-app-api@1.3.0 - @backstage/plugin-permission-common@0.9.3 - @backstage/plugin-events-node@0.4.17 - @backstage/plugin-auth-node@0.6.9 - @backstage/config@1.3.6 ## 1.10.0-next.2 ### Patch Changes - f3001fd: Tweak some of the mock services to have more precise types - Updated dependencies - @backstage/backend-plugin-api@1.5.0-next.2 ## 1.10.0-next.1 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.13.1-next.1 - @backstage/backend-plugin-api@1.5.0-next.1 - @backstage/backend-app-api@1.3.0-next.1 - @backstage/plugin-permission-common@0.9.3-next.1 - @backstage/plugin-auth-node@0.6.9-next.1 - @backstage/plugin-events-node@0.4.17-next.1 ## 1.10.0-next.0 ### Minor Changes - d57b13b: Added support for Postgres 18 to the available `TestDatabases`. Note that the set of _default_ databases to test against for users of the `TestDatabases` class was also updated to include Postgres 14 and 18, instead of 13 and 17. If you need to override this, you can pass in an explicit `ids` argument, for example `ids: ['POSTGRES_17', 'POSTGRES_13', 'SQLITE_3']`. ### Patch Changes - 05f60e1: Refactored constructor parameter properties to explicit property declarations for compatibility with TypeScript's `erasableSyntaxOnly` setting. This internal refactoring maintains all existing functionality while ensuring TypeScript compilation compatibility. - Updated dependencies - @backstage/backend-defaults@0.13.1-next.0 - @backstage/plugin-events-node@0.4.17-next.0 - @backstage/plugin-auth-node@0.6.9-next.0 - @backstage/backend-app-api@1.2.9-next.0 - @backstage/config@1.3.6-next.0 - @backstage/backend-plugin-api@1.4.5-next.0 - @backstage/errors@1.2.7 - @backstage/types@1.2.2 - @backstage/plugin-permission-common@0.9.3-next.0 ## 1.9.1 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.13.0 - @backstage/backend-app-api@1.2.8 - @backstage/config@1.3.5 - @backstage/backend-plugin-api@1.4.4 - @backstage/plugin-auth-node@0.6.8 - @backstage/plugin-events-node@0.4.16 - @backstage/plugin-permission-common@0.9.2 ## 1.9.1-next.1 ### Patch Changes - Updated dependencies - @backstage/config@1.3.4-next.0 - @backstage/backend-defaults@0.13.0-next.1 - @backstage/backend-app-api@1.2.8-next.0 - @backstage/backend-plugin-api@1.4.4-next.0 - @backstage/plugin-auth-node@0.6.8-next.0 - @backstage/plugin-permission-common@0.9.2-next.0 - @backstage/plugin-events-node@0.4.16-next.0 ## 1.9.1-next.0 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.13.0-next.0 - @backstage/backend-app-api@1.2.7 - @backstage/plugin-auth-node@0.6.7 - @backstage/backend-plugin-api@1.4.3 - @backstage/config@1.3.3 - @backstage/errors@1.2.7 - @backstage/types@1.2.2 - @backstage/plugin-events-node@0.4.15 - @backstage/plugin-permission-common@0.9.1 ## 1.9.0 ### Minor Changes - 4e2c237: The `mockServices.rootConfig()` instance now has an `update` method that can be used to test configuration subscriptions and updates. ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.12.1 - @backstage/plugin-auth-node@0.6.7 - @backstage/plugin-events-node@0.4.15 - @backstage/types@1.2.2 - @backstage/backend-app-api@1.2.7 - @backstage/backend-plugin-api@1.4.3 ## 1.9.0-next.1 ### Patch Changes - Updated dependencies - @backstage/plugin-auth-node@0.6.7-next.0 - @backstage/backend-defaults@0.12.1-next.0 - @backstage/backend-plugin-api@1.4.3-next.0 - @backstage/backend-app-api@1.2.7-next.0 - @backstage/plugin-events-node@0.4.15-next.0 ## 1.9.0-next.0 ### Minor Changes - 4e2c237: The `mockServices.rootConfig()` instance now has an `update` method that can be used to test configuration subscriptions and updates. ### Patch Changes - Updated dependencies - @backstage/backend-app-api@1.2.6 - @backstage/backend-defaults@0.12.0 - @backstage/backend-plugin-api@1.4.2 - @backstage/config@1.3.3 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-auth-node@0.6.6 - @backstage/plugin-events-node@0.4.14 - @backstage/plugin-permission-common@0.9.1 ## 1.8.0 ### Minor Changes - dffaf70: Switched out `mockServices.scheduler` to use a mocked implementation instead of the default scheduler implementation. This implementation runs any scheduled tasks immediately on startup, as long as they don't have an initial delay or a manual trigger. After the initial run, the tasks are never run again unless manually triggered. ### Patch Changes - 279e1f7: Updated the type definition of `mockErrorHandler` to ensure that it is used correctly. ```ts // This is wrong and will now result in a type error app.use(mockErrorHandler); // This is the correct usage app.use(mockErrorHandler()); ``` - 3a7dad9: Updated `better-sqlite3` to v12 - Updated dependencies - @backstage/backend-defaults@0.12.0 - @backstage/backend-app-api@1.2.6 - @backstage/plugin-auth-node@0.6.6 - @backstage/backend-plugin-api@1.4.2 - @backstage/plugin-events-node@0.4.14 ## 1.7.1-next.0 ### Patch Changes - 3a7dad9: Updated `better-sqlite3` to v12 - Updated dependencies - @backstage/backend-defaults@0.11.2-next.0 - @backstage/backend-app-api@1.2.6-next.0 - @backstage/plugin-auth-node@0.6.6-next.0 - @backstage/backend-plugin-api@1.4.2-next.0 - @backstage/plugin-events-node@0.4.14-next.0 - @backstage/config@1.3.3 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-permission-common@0.9.1 ## 1.7.0 ### Minor Changes - ead925a: Add a standard `toString` on credentials objects ### Patch Changes - Updated dependencies - @backstage/config@1.3.3 - @backstage/plugin-permission-common@0.9.1 - @backstage/backend-defaults@0.11.1 - @backstage/backend-app-api@1.2.5 - @backstage/backend-plugin-api@1.4.1 - @backstage/plugin-auth-node@0.6.5 - @backstage/plugin-events-node@0.4.13 ## 1.7.0-next.1 ### Patch Changes - Updated dependencies - @backstage/config@1.3.3-next.0 - @backstage/plugin-permission-common@0.9.1-next.0 - @backstage/backend-defaults@0.11.1-next.1 - @backstage/backend-app-api@1.2.5-next.0 - @backstage/backend-plugin-api@1.4.1-next.0 - @backstage/plugin-auth-node@0.6.5-next.0 - @backstage/plugin-events-node@0.4.13-next.0 ## 1.7.0-next.0 ### Minor Changes - ead925a: Add a standard `toString` on credentials objects ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.11.1-next.0 - @backstage/backend-app-api@1.2.4 - @backstage/plugin-auth-node@0.6.4 - @backstage/backend-plugin-api@1.4.0 - @backstage/plugin-events-node@0.4.12 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-permission-common@0.9.0 ## 1.6.0 ### Minor Changes - 6dfb7be: Added `mockServices.permissions()` that can return actual results. - c999c25: Added an `actionsRegistryServiceMock` and `actionsServiceMock` to `/alpha` export for the experimental services. This allows you to write tests for your actions by doing something similar to the following: ```ts import { actionsRegistryServiceMock } from '@backstage/backend-test-utils/alpha'; const mockActionsRegistry = actionsRegistryServiceMock(); const mockCatalog = catalogServiceMock({ entities: [ ... ], }); createGetCatalogEntityAction({ catalog: mockCatalog, actionsRegistry: mockActionsRegistry, }); await expect( mockActionsRegistry.invoke({ id: 'test:get-catalog-entity', input: { name: 'test' }, }), ).resolves.toEqual(...) ``` ### Patch Changes - 12c1fd4: Make the `user` credentials mock behave more like production - Updated dependencies - @backstage/backend-defaults@0.11.0 - @backstage/plugin-auth-node@0.6.4 - @backstage/backend-app-api@1.2.4 - @backstage/backend-plugin-api@1.4.0 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.12 - @backstage/plugin-permission-common@0.9.0 ## 1.6.0-next.2 ### Patch Changes - 12c1fd4: Make the `user` credentials mock behave more like production - Updated dependencies - @backstage/backend-defaults@0.11.0-next.2 - @backstage/backend-app-api@1.2.4-next.2 - @backstage/backend-plugin-api@1.4.0-next.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-auth-node@0.6.4-next.1 - @backstage/plugin-events-node@0.4.12-next.1 ## 1.6.0-next.1 ### Patch Changes - Updated dependencies - @backstage/plugin-auth-node@0.6.4-next.1 - @backstage/backend-app-api@1.2.4-next.1 - @backstage/backend-defaults@0.10.1-next.1 - @backstage/backend-plugin-api@1.4.0-next.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.12-next.1 ## 1.6.0-next.0 ### Minor Changes - c999c25: Added mock implementations for `ActionsService` and `ActionsRegistryService` ### Patch Changes - Updated dependencies - @backstage/backend-plugin-api@1.4.0-next.0 - @backstage/backend-defaults@0.10.1-next.0 - @backstage/backend-app-api@1.2.4-next.0 - @backstage/plugin-auth-node@0.6.4-next.0 - @backstage/plugin-events-node@0.4.12-next.0 ## 1.5.0 ### Minor Changes - b3832d1: Add a functional `mockServices.events()` - c6bc67d: Added Valkey support alongside Redis in backend-defaults cache clients, using the new Keyv Valkey package. Also extended backend-test-utils to support Valkey in tests. ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.10.0 - @backstage/backend-app-api@1.2.3 - @backstage/plugin-auth-node@0.6.3 - @backstage/backend-plugin-api@1.3.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.11 ## 1.5.0-next.3 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.10.0-next.3 - @backstage/plugin-auth-node@0.6.3-next.2 - @backstage/backend-app-api@1.2.3-next.2 - @backstage/backend-plugin-api@1.3.1-next.2 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.11-next.2 ## 1.5.0-next.2 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.10.0-next.2 - @backstage/config@1.3.2 - @backstage/backend-app-api@1.2.3-next.1 - @backstage/plugin-auth-node@0.6.3-next.1 - @backstage/backend-plugin-api@1.3.1-next.1 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.11-next.1 ## 1.5.0-next.1 ### Minor Changes - c6bc67d: Added Valkey support alongside Redis in backend-defaults cache clients, using the new Keyv Valkey package. Also extended backend-test-utils to support Valkey in tests. ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.10.0-next.1 - @backstage/backend-app-api@1.2.3-next.1 - @backstage/plugin-auth-node@0.6.3-next.1 - @backstage/backend-plugin-api@1.3.1-next.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.11-next.1 ## 1.5.0-next.0 ### Minor Changes - b3832d1: Add a functional `mockServices.events()` ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.9.1-next.0 - @backstage/backend-app-api@1.2.3-next.0 - @backstage/backend-plugin-api@1.3.1-next.0 - @backstage/plugin-auth-node@0.6.3-next.0 - @backstage/plugin-events-node@0.4.11-next.0 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 ## 1.4.0 ### Minor Changes - cf4eb13: Added `actor` property to `BackstageUserPrincipal` containing the subject of the last service (if any) who performed authentication on behalf of the user. ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.9.0 - @backstage/backend-plugin-api@1.3.0 - @backstage/backend-app-api@1.2.2 - @backstage/plugin-auth-node@0.6.2 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.10 ## 1.3.2-next.2 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.9.0-next.2 - @backstage/backend-app-api@1.2.1 - @backstage/backend-plugin-api@1.2.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-auth-node@0.6.1 - @backstage/plugin-events-node@0.4.9 ## 1.3.2-next.1 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.9.0-next.1 - @backstage/backend-app-api@1.2.1 - @backstage/plugin-auth-node@0.6.1 - @backstage/backend-plugin-api@1.2.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.9 ## 1.3.2-next.0 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.9.0-next.0 - @backstage/backend-app-api@1.2.1 - @backstage/plugin-auth-node@0.6.1 - @backstage/backend-plugin-api@1.2.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.9 ## 1.3.1 ### Patch Changes - c3a91d5: Added support for PostgreSQL version 17 - 37c6510: Moved `@types/jest` to `devDependencies`. - Updated dependencies - @backstage/backend-defaults@0.8.2 - @backstage/plugin-auth-node@0.6.1 - @backstage/plugin-events-node@0.4.9 - @backstage/backend-app-api@1.2.1 - @backstage/backend-plugin-api@1.2.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 ## 1.3.1-next.2 ### Patch Changes - 37c6510: Moved `@types/jest` to `devDependencies`. - Updated dependencies - @backstage/backend-defaults@0.8.2-next.2 - @backstage/plugin-events-node@0.4.9-next.2 - @backstage/backend-app-api@1.2.1-next.2 - @backstage/backend-plugin-api@1.2.1-next.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-auth-node@0.6.1-next.1 ## 1.3.1-next.1 ### Patch Changes - Updated dependencies - @backstage/plugin-auth-node@0.6.1-next.1 - @backstage/backend-app-api@1.2.1-next.1 - @backstage/backend-defaults@0.8.2-next.1 - @backstage/backend-plugin-api@1.2.1-next.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.9-next.1 ## 1.3.1-next.0 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.8.2-next.0 - @backstage/backend-app-api@1.2.1-next.0 - @backstage/plugin-auth-node@0.6.1-next.0 - @backstage/backend-plugin-api@1.2.1-next.0 - @backstage/plugin-events-node@0.4.9-next.0 ## 1.3.0 ### Minor Changes - dd05a97: Added mocks for the new `PermissionsRegistryService`. - a4aa244: This change introduces mocks for the `auditor` service. ### Patch Changes - f866b86: Internal refactor to use explicit `require` for lazy-loading dependency. - fb051f2: Sync feature installation compatibility logic with `@backstage/backend-app-api`. - 72cddf2: Added the new `getPermissionRuleset` method to `mockServices.permissionsRegistry`. - Updated dependencies - @backstage/backend-defaults@0.8.0 - @backstage/backend-plugin-api@1.2.0 - @backstage/plugin-auth-node@0.6.0 - @backstage/backend-app-api@1.2.0 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.8 ## 1.3.0-next.3 ### Patch Changes - 72cddf2: Added the new `getPermissionRuleset` method to `mockServices.permissionsRegistry`. - Updated dependencies - @backstage/backend-defaults@0.8.0-next.3 - @backstage/backend-plugin-api@1.2.0-next.2 - @backstage/backend-app-api@1.2.0-next.3 - @backstage/plugin-auth-node@0.6.0-next.2 - @backstage/plugin-events-node@0.4.8-next.2 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 ## 1.3.0-next.2 ### Patch Changes - Updated dependencies - @backstage/backend-plugin-api@1.2.0-next.1 - @backstage/plugin-auth-node@0.6.0-next.1 - @backstage/backend-defaults@0.8.0-next.2 - @backstage/backend-app-api@1.2.0-next.2 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-events-node@0.4.8-next.1 ## 1.3.0-next.1 ### Patch Changes - Updated dependencies - @backstage/backend-app-api@1.1.2-next.1 - @backstage/backend-defaults@0.8.0-next.1 - @backstage/backend-plugin-api@1.2.0-next.0 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-auth-node@0.5.7-next.0 - @backstage/plugin-events-node@0.4.8-next.0 ## 1.3.0-next.0 ### Minor Changes - dd05a97: Added mocks for the new `PermissionsRegistryService`. - a4aa244: This change introduces mocks for the `auditor` service. ### Patch Changes - f866b86: Internal refactor to use explicit `require` for lazy-loading dependency. - fb051f2: Sync feature installation compatibility logic with `@backstage/backend-app-api`. - Updated dependencies - @backstage/backend-defaults@0.8.0-next.0 - @backstage/backend-plugin-api@1.2.0-next.0 - @backstage/backend-app-api@1.1.2-next.0 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/types@1.2.1 - @backstage/plugin-auth-node@0.5.7-next.0 - @backstage/plugin-events-node@0.4.8-next.0 ## 1.2.1 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.7.0 - @backstage/backend-app-api@1.1.1 - @backstage/types@1.2.1 - @backstage/plugin-auth-node@0.5.6 - @backstage/backend-plugin-api@1.1.1 - @backstage/config@1.3.2 - @backstage/errors@1.2.7 - @backstage/plugin-events-node@0.4.7 ## 1.2.1-next.1 ### Patch Changes - Updated dependencies - @backstage/types@1.2.1-next.0 - @backstage/backend-app-api@1.1.1-next.1 - @backstage/backend-defaults@0.7.0-next.1 - @backstage/backend-plugin-api@1.1.1-next.1 - @backstage/config@1.3.2-next.0 - @backstage/errors@1.2.7-next.0 - @backstage/plugin-auth-node@0.5.6-next.1 - @backstage/plugin-events-node@0.4.7-next.1 ## 1.2.1-next.0 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.7.0-next.0 - @backstage/backend-app-api@1.1.1-next.0 - @backstage/plugin-auth-node@0.5.6-next.0 - @backstage/backend-plugin-api@1.1.1-next.0 - @backstage/config@1.3.1 - @backstage/errors@1.2.6 - @backstage/types@1.2.0 - @backstage/plugin-events-node@0.4.7-next.0 ## 1.2.0 ### Minor Changes - de6f280: **BREAKING** Upgraded @keyv/redis and keyv packages to resolve a bug related to incorrect resolution of cache keys. This is a breaking change for clients using the `redis` store for cache with `useRedisSets` option set to false since cache keys will be calculated differently (without the sets:namespace: prefix). For clients with default configuration (or useRedisSets set to false) the cache keys will stay the same, but since @keyv/redis library no longer supports redis sets they won't be utilised anymore. If you were using `useRedisSets` option in configuration make sure to remove it from `app-config.yaml`: ```diff backend: cache: store: redis connection: redis://user:pass@cache.example.com:6379 - useRedisSets: false ``` ### Patch Changes - 0e9c9fa: Mock the new `RootLifecycleService.addBeforeShutdownHook` method. - Updated dependencies - @backstage/backend-defaults@0.6.0 - @backstage/plugin-auth-node@0.5.5 - @backstage/backend-plugin-api@1.1.0 - @backstage/backend-app-api@1.1.0 - @backstage/plugin-events-node@0.4.6 - @backstage/errors@1.2.6 - @backstage/config@1.3.1 - @backstage/types@1.2.0 ## 1.2.0-next.2 ### Patch Changes - 0e9c9fa: Mock the new `RootLifecycleService.addBeforeShutdownHook` method. - Updated dependencies - @backstage/backend-defaults@0.6.0-next.2 - @backstage/backend-plugin-api@1.1.0-next.2 - @backstage/backend-app-api@1.1.0-next.2 - @backstage/errors@1.2.6-next.0 - @backstage/plugin-auth-node@0.5.5-next.2 - @backstage/plugin-events-node@0.4.6-next.2 - @backstage/config@1.3.1-next.0 - @backstage/types@1.2.0 ## 1.2.0-next.1 ### Patch Changes - Updated dependencies - @backstage/plugin-auth-node@0.5.5-next.1 - @backstage/backend-defaults@0.6.0-next.1 - @backstage/backend-app-api@1.1.0-next.1 - @backstage/backend-plugin-api@1.1.0-next.1 - @backstage/config@1.3.0 - @backstage/errors@1.2.5 - @backstage/types@1.2.0 - @backstage/plugin-events-node@0.4.6-next.1 ## 1.2.0-next.0 ### Minor Changes - de6f280: **BREAKING** Upgraded @keyv/redis and keyv packages to resolve a bug related to incorrect resolution of cache keys. This is a breaking change for clients using the `redis` store for cache with `useRedisSets` option set to false since cache keys will be calculated differently (without the sets:namespace: prefix). For clients with default configuration (or useRedisSets set to false) the cache keys will stay the same, but since @keyv/redis library no longer supports redis sets they won't be utilised anymore. If you were using `useRedisSets` option in configuration make sure to remove it from `app-config.yaml`: ```diff backend: cache: store: redis connection: redis://user:pass@cache.example.com:6379 - useRedisSets: false ``` ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.6.0-next.0 - @backstage/backend-plugin-api@1.0.3-next.0 - @backstage/backend-app-api@1.0.3-next.0 - @backstage/plugin-events-node@0.4.6-next.0 - @backstage/plugin-auth-node@0.5.5-next.0 - @backstage/config@1.3.0 - @backstage/errors@1.2.5 - @backstage/types@1.2.0 ## 1.1.0 ### Minor Changes - 5064827: Made it possible to construct `mockServices.database` with a given knex instance ### Patch Changes - 7aae8e3: The `mockServices.discovery.factory()` factory now uses the mocked discovery service as its implementation, avoid the need for configuration. - eb82994: Removed unused `msw` dependency. - 4e58bc7: Upgrade to uuid v11 internally - Updated dependencies - @backstage/config@1.3.0 - @backstage/plugin-events-node@0.4.5 - @backstage/backend-defaults@0.5.3 - @backstage/types@1.2.0 - @backstage/plugin-auth-node@0.5.4 - @backstage/backend-plugin-api@1.0.2 - @backstage/backend-app-api@1.0.2 - @backstage/errors@1.2.5 ## 1.1.0-next.3 ### Patch Changes - Updated dependencies - @backstage/plugin-events-node@0.4.5-next.3 - @backstage/backend-defaults@0.5.3-next.3 - @backstage/backend-app-api@1.0.2-next.2 - @backstage/backend-plugin-api@1.0.2-next.2 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-auth-node@0.5.4-next.2 ## 1.1.0-next.2 ### Minor Changes - 5064827: Made it possible to construct `mockServices.database` with a given knex instance ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.5.3-next.2 - @backstage/plugin-events-node@0.4.5-next.2 - @backstage/plugin-auth-node@0.5.4-next.2 - @backstage/backend-app-api@1.0.2-next.2 - @backstage/backend-plugin-api@1.0.2-next.2 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 ## 1.0.3-next.1 ### Patch Changes - Updated dependencies - @backstage/backend-app-api@1.0.2-next.1 - @backstage/backend-defaults@0.5.3-next.1 - @backstage/backend-plugin-api@1.0.2-next.1 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-auth-node@0.5.4-next.1 - @backstage/plugin-events-node@0.4.4-next.1 ## 1.0.3-next.0 ### Patch Changes - 7aae8e3: The `mockServices.discovery.factory()` factory now uses the mocked discovery service as its implementation, avoid the need for configuration. - eb82994: Removed unused `msw` dependency. - Updated dependencies - @backstage/plugin-events-node@0.4.3-next.0 - @backstage/plugin-auth-node@0.5.4-next.0 - @backstage/backend-defaults@0.5.3-next.0 - @backstage/backend-app-api@1.0.2-next.0 - @backstage/backend-plugin-api@1.0.2-next.0 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 ## 1.0.1 ### Patch Changes - fd6e6f4: build(deps): bump `cookie` from 0.6.0 to 0.7.0 - a19ce00: The `createMockDirectory` cleanup strategy has been changed, no longer requiring it to be called outside individual tests. - 9cc7dd6: Minor doc string changes - Updated dependencies - @backstage/backend-defaults@0.5.1 - @backstage/backend-app-api@1.0.1 - @backstage/plugin-auth-node@0.5.3 - @backstage/plugin-events-node@0.4.1 - @backstage/backend-plugin-api@1.0.1 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 ## 1.0.1-next.2 ### Patch Changes - fd6e6f4: build(deps): bump `cookie` from 0.6.0 to 0.7.0 - Updated dependencies - @backstage/backend-app-api@1.0.1-next.1 - @backstage/backend-defaults@0.5.1-next.2 - @backstage/plugin-auth-node@0.5.3-next.1 - @backstage/backend-plugin-api@1.0.1-next.1 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-events-node@0.4.1-next.1 ## 1.0.1-next.1 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.5.1-next.1 - @backstage/backend-app-api@1.0.1-next.0 - @backstage/backend-plugin-api@1.0.1-next.0 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-auth-node@0.5.3-next.0 - @backstage/plugin-events-node@0.4.1-next.0 ## 1.0.1-next.0 ### Patch Changes - Updated dependencies - @backstage/backend-defaults@0.5.1-next.0 - @backstage/backend-app-api@1.0.1-next.0 - @backstage/plugin-events-node@0.4.1-next.0 - @backstage/plugin-auth-node@0.5.3-next.0 - @backstage/backend-plugin-api@1.0.1-next.0 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 ## 1.0.0 ### Major Changes - ec1b4be: Release 1.0 of the new backend system! :tada: The backend system is finally getting promoted to 1.0.0. This means that the API is now stable and breaking changes should not occur until version 2.0.0, see our [package versioning policy](https://backstage.io/docs/overview/versioning-policy/#package-versioning-policy) for more information what this means. This release also marks the end of the old backend system based on `createRouter` exports. Going forward backend plugins packages will start to deprecate and later this year remove exports supporting the old backend system. If you would like to help out with this transition, see https://github.com/backstage/backstage/issues/26353 or consult the [migration guide](https://backstage.io/docs/backend-system/building-plugins-and-modules/migrating/#remove-support-for-the-old-backend-system). ### Minor Changes - 19ff127: **BREAKING**: Removed service mocks for the identity and token manager services, which have been removed from `@backstage/backend-plugin-api`. - d425fc4: **BREAKING**: The return values from `createBackendPlugin`, `createBackendModule`, and `createServiceFactory` are now simply `BackendFeature` and `ServiceFactory`, instead of the previously deprecated form of a function that returns them. For this reason, `createServiceFactory` also no longer accepts the callback form where you provide direct options to the service. This also affects all `coreServices.*` service refs. This may in particular affect tests; if you were effectively doing `createBackendModule({...})()` (note the parentheses), you can now remove those extra parentheses at the end. You may encounter cases of this in your `packages/backend/src/index.ts` too, where you add plugins, modules, and services. If you were using `createServiceFactory` with a function as its argument for the purpose of passing in options, this pattern has been deprecated for a while and is no longer supported. You may want to explore the new multiton patterns to achieve your goals, or moving settings to app-config. As part of this change, the `IdentityFactoryOptions` type was removed, and can no longer be used to tweak that service. The identity service was also deprecated some time ago, and you will want to [migrate to the new auth system](https://backstage.io/docs/tutorials/auth-service-migration) if you still rely on it. ### Patch Changes - 710f621: Added missing service mock for `mockServices.rootConfig.mock`, and fixed the definition of `mockServices.rootHttpRouter.factory` to not have a duplicate callback. - f421d2a: Make MySQL pool settings a bit more lax - 0363bf1: There is a new `mockErrorHandler` utility to help in mocking the error middleware in tests. - c2b63ab: Updated dependency `supertest` to `^7.0.0`. - Updated dependencies - @backstage/backend-defaults@0.5.0 - @backstage/backend-app-api@1.0.0 - @backstage/backend-plugin-api@1.0.0 - @backstage/plugin-auth-node@0.5.2 - @backstage/plugin-events-node@0.4.0 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 ## 1.0.0-next.2 ### Major Changes - ec1b4be: Release 1.0 of the new backend system! :tada: The backend system is finally getting promoted to 1.0.0. This means that the API is now stable and breaking changes should not occur until version 2.0.0, see our [package versioning policy](https://backstage.io/docs/overview/versioning-policy/#package-versioning-policy) for more information what this means. This release also marks the end of the old backend system based on `createRouter` exports. Going forward backend plugins packages will start to deprecate and later this year remove exports supporting the old backend system. If you would like to help out with this transition, see https://github.com/backstage/backstage/issues/26353 or consult the [migration guide](https://backstage.io/docs/backend-system/building-plugins-and-modules/migrating/#remove-support-for-the-old-backend-system). ### Patch Changes - f421d2a: Make MySQL pool settings a bit more lax - c2b63ab: Updated dependency `supertest` to `^7.0.0`. - Updated dependencies - @backstage/backend-app-api@1.0.0-next.2 - @backstage/backend-defaults@0.5.0-next.2 - @backstage/plugin-auth-node@0.5.2-next.2 - @backstage/backend-plugin-api@1.0.0-next.2 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-events-node@0.4.0-next.2 ## 0.6.0-next.1 ### Patch Changes - 710f621: Added missing service mock for `mockServices.rootConfig.mock`, and fixed the definition of `mockServices.rootHttpRouter.factory` to not have a duplicate callback. - Updated dependencies - @backstage/backend-defaults@0.5.0-next.1 - @backstage/plugin-auth-node@0.5.2-next.1 - @backstage/backend-app-api@0.10.0-next.1 - @backstage/backend-plugin-api@0.9.0-next.1 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-events-node@0.4.0-next.1 ## 0.6.0-next.0 ### Minor Changes - 19ff127: **BREAKING**: Removed service mocks for the identity and token manager services, which have been removed from `@backstage/backend-plugin-api`. - d425fc4: **BREAKING**: The return values from `createBackendPlugin`, `createBackendModule`, and `createServiceFactory` are now simply `BackendFeature` and `ServiceFactory`, instead of the previously deprecated form of a function that returns them. For this reason, `createServiceFactory` also no longer accepts the callback form where you provide direct options to the service. This also affects all `coreServices.*` service refs. This may in particular affect tests; if you were effectively doing `createBackendModule({...})()` (note the parentheses), you can now remove those extra parentheses at the end. You may encounter cases of this in your `packages/backend/src/index.ts` too, where you add plugins, modules, and services. If you were using `createServiceFactory` with a function as its argument for the purpose of passing in options, this pattern has been deprecated for a while and is no longer supported. You may want to explore the new multiton patterns to achieve your goals, or moving settings to app-config. As part of this change, the `IdentityFactoryOptions` type was removed, and can no longer be used to tweak that service. The identity service was also deprecated some time ago, and you will want to [migrate to the new auth system](https://backstage.io/docs/tutorials/auth-service-migration) if you still rely on it. ### Patch Changes - 0363bf1: There is a new `mockErrorHandler` utility to help in mocking the error middleware in tests. - Updated dependencies - @backstage/backend-app-api@0.10.0-next.0 - @backstage/backend-plugin-api@0.9.0-next.0 - @backstage/backend-defaults@0.5.0-next.0 - @backstage/plugin-events-node@0.4.0-next.0 - @backstage/plugin-auth-node@0.5.2-next.0 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 ## 0.5.0 ### Minor Changes - 861f162: **BREAKING**: Removed these deprecated helpers: - `setupRequestMockHandlers` is removed; use `registerMswTestHooks` instead. - `MockDirectoryOptions` is removed; use `CreateMockDirectoryOptions` instead. Stopped exporting the deprecated and internal `isDockerDisabledForTests` helper. Removed `get` method from `ServiceFactoryTester` which is replaced by `getSubject` ### Patch Changes - 8b13183: Internal updates to support latest version of `BackendFeauture`s from `@backstage/backend-plugin-api`. - b63d378: Update internal imports - 7c5f3b0: Update the `ServiceFactoryTester` to be able to test services that enables multi implementation installation. - 4e79d19: The default services for `startTestBackend` and `ServiceFactoryTester` now includes the Root Health Service. - Updated dependencies - @backstage/backend-defaults@0.4.2 - @backstage/backend-app-api@0.9.0 - @backstage/backend-plugin-api@0.8.0 - @backstage/plugin-auth-node@0.5.0 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-events-node@0.3.9 ## 0.4.5-next.3 ### Patch Changes - Updated dependencies - @backstage/backend-plugin-api@0.8.0-next.3 - @backstage/backend-defaults@0.4.2-next.3 - @backstage/backend-app-api@0.8.1-next.3 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-auth-node@0.5.0-next.3 - @backstage/plugin-events-node@0.3.9-next.3 ## 0.4.5-next.2 ### Patch Changes - 8b13183: Internal updates to support latest version of `BackendFeauture`s from `@backstage/backend-plugin-api`. - 7c5f3b0: Update the `ServiceFactoryTester` to be able to test services that enables multi implementation installation. - Updated dependencies - @backstage/backend-defaults@0.4.2-next.2 - @backstage/backend-plugin-api@0.8.0-next.2 - @backstage/backend-app-api@0.8.1-next.2 - @backstage/plugin-auth-node@0.5.0-next.2 - @backstage/plugin-events-node@0.3.9-next.2 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 ## 0.4.5-next.1 ### Patch Changes - Updated dependencies - @backstage/backend-plugin-api@0.7.1-next.1 - @backstage/backend-app-api@0.8.1-next.1 - @backstage/backend-defaults@0.4.2-next.1 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-auth-node@0.4.18-next.1 - @backstage/plugin-events-node@0.3.9-next.1 ## 0.4.5-next.0 ### Patch Changes - 4e79d19: The default services for `startTestBackend` and `ServiceFactoryTester` now includes the Root Health Service. - Updated dependencies - @backstage/backend-defaults@0.4.2-next.0 - @backstage/backend-app-api@0.8.1-next.0 - @backstage/backend-plugin-api@0.7.1-next.0 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 - @backstage/plugin-auth-node@0.4.18-next.0 - @backstage/plugin-events-node@0.3.9-next.0 ## 0.4.4 ### Patch Changes - 2f99178: The `ServiceFactoryTest.get` method was deprecated and the `ServiceFactoryTest.getSubject` should be used instead. The `getSubject` method has the same behavior, but has a better method name to indicate that the service instance returned is the subject currently being tested. - edf5cc3: The function `isDockerDisabledForTests` is deprecated and will no longer be exported in the near future as it should only be used internally. - b05e1e1: Service factories exported by this package have been updated to use the new service factory format that doesn't use a callback. - fce7887: Added mock for the Root Health Service in `mockServices`. - 906c817: Updated `startTestBackend` and `ServiceFactoryTester` to only accept plain service factory or backend feature objects, no longer supporting the callback form. This lines up with the changes to `@backstage/backend-plugin-api` and should not require any code changes. - 95a3a0b: Rename frontend and backend `setupRequestMockHandlers` methods to `registerMswTestHooks`. - b9ed1bb: bumped better-sqlite3 from ^9.0.0 to ^11.0.0 - 98ccf00: Internal refactor of `mockServices.httpAuth.factory` to allow it to still be constructed with options, but without declaring options via `createServiceFactory`. - Updated dependencies - @backstage/backend-plugin-api@0.7.0 - @backstage/backend-defaults@0.4.0 - @backstage/backend-app-api@0.8.0 - @backstage/plugin-events-node@0.3.8 - @backstage/plugin-auth-node@0.4.17 - @backstage/config@1.2.0 - @backstage/errors@1.2.4 - @backstage/types@1.1.1 ## 0.4.4-next.1 ### Patch Changes - b9ed1bb: bumped better-sqlite3 from ^9.0.0 to ^11.0.0 - Updated dependencies - @back