chore: Update dependency @backstage/backend-plugin-api to v0.7.0 #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.6.18
->0.7.0
Release Notes
backstage/backstage (@backstage/backend-plugin-api)
v0.7.0
Compare Source
Minor Changes
36f91e8
: BREAKING: ThePermissionsService
no longer supports passing the deprecatedtoken
option, and the request options are now required.Patch Changes
53ced70
: Added a new Root Health Service which adds new endpoints for health checks.083eaf9
: Fix bug where ISO durations could no longer be used for schedules062c01c
: Deprecated the ability to define options for service factories throughcreateServiceFactory
. In the future all service factories will return a plainServiceFactory
object, rather than allowing users to pass options to the factory. To allow for customization of a service implementation one can instead export one or a few building blocks that allows for simple re-implementation of the service instead.For example, instead of:
We instead encourage service implementations to provide an easy to use API for re-implementing the service for advanced use-cases:
A user that wishes to customize the service can then easily do so by defining their own factory:
This is of course more verbose than the previous solution where the factory could be customized through
fooServiceFactory({ bar: 'baz' })
, but this is a simplified which in practice should be using static configuration instead.In cases where the old options patterns significantly improves the usability of the service factory, the old pattern can still be implemented like this:
This change is being made because the ability to define an options callback encourages bad design of services factories. When possible, a service should be configurable through static configuration, and the existence of options may discourage that. More importantly though, the existing options do not work well with the dependency injection system of services, which is a problem for callbacks an other more advanced options. This lead to a bad pattern where only a few explicit dependencies where made available in callbacks, rather than providing an API that allowed simple re-implementation of the service with full access to dependency injection.
A separate benefit of this change is that it simplifies the TypeScript types in a way that allows TypeScript to provide a much better error message when a service factory doesn't properly implement the service interface.
fe47a3e
: All service config types were renamed to option types in order to standardize frontend and backendcreate*
function signatures:ServiceRefConfig
type was renamed toServiceRefOptions
;RootServiceFactoryConfig
type was renamed toRootServiceFactoryOptions
;PluginServiceFactoryConfig
type was renamed toPluginServiceFactoryOptions
Updated dependencies
v0.6.21
Compare Source
Patch Changes
53ced70
: Added a new Root Health Service which adds new endpoints for health checks.083eaf9
: Fix bug where ISO durations could no longer be used for schedulesv0.6.20
Compare Source
v0.6.19
Compare Source
Patch Changes
78a0b08
: DEPRECATION: You should no longer do a function call on backend features when adding them to backends. The support for doing that is deprecated, and you should remove all trailing()
parentheses after plugins and modules where you add them to your backend or test backends (e.g. when usingstartTestBackend
).The background for this is that
createBackendPlugin
andcreateBackendModule
function now effectively return aBackendFeature
rather than a() => BackendFeature
. This is part of the cleanup efforts for New Backend System 1.0. In the short run this is non-breaking because the feature type has been given a callback signature that returns itself. But we strongly recommend that you remove all now-redundant calls made to feature objects, because that callback signature will be removed in a future release.Service factories are still callbacks at this point.
Example change:
9bdc3e8
: In tests, returnnull
rather than throwing an error when trying to get theExtensionPoint.T
property, so that tests asserting the property are not easily broken.9e63318
: Added an optionalaccessRestrictions
to external access service tokens and service principals in general, such that you can limit their access to certain plugins or permissions.3aa3fc7
: Marked theTokenManagerService
andIdentityService
types as deprecatedb2ee7f3
: Deprecated all of theUrlReader
related type names and replaced them with prefixed versions. Please update your imports.ReadTreeOptions
was renamed toUrlReaderServiceReadTreeOptions
ReadTreeResponse
was renamed toUrlReaderServiceReadTreeResponse
ReadTreeResponseDirOptions
was renamed toUrlReaderServiceReadTreeResponseDirOptions
ReadTreeResponseFile
was renamed toUrlReaderServiceReadTreeResponseFile
ReadUrlResponse
was renamed toUrlReaderServiceReadUrlResponse
ReadUrlOptions
was renamed toUrlReaderServiceReadUrlOptions
SearchOptions
was renamed toUrlReaderServiceSearchOptions
SearchResponse
was renamed toUrlReaderServiceSearchResponse
SearchResponseFile
was renamed toUrlReaderServiceSearchResponseFile
9539a0b
: ImprovedcoreServices
doc comments6551b3d
: Moved the declaration of theSchedulerService
here, along with prefixed versions of all of the types it depends on, from@backstage/backend-tasks
0665b7e
: RenamedBackendPluginConfig
,BackendModuleConfig
, andExtensionPointConfig
respectively toCreateBackendPluginOptions
,CreateBackendModuleOptions
, andCreateExtensionPointOptions
to standardize frontend and backend factories signatures.1779188
: Start using theisDatabaseConflictError
helper from the@backstage/backend-plugin-api
package in order to avoid dependency with the soon to deprecate@backstage/backend-common
package.Updated dependencies
Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.