Merge remote-tracking branch 'upstream/master' into airbrake-backend

# Conflicts:
#	packages/backend/package.json
This commit is contained in:
Karan Shah
2022-02-10 14:45:02 +00:00
326 changed files with 7370 additions and 2778 deletions
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
The `plugin:diff` command no longer validates the existence of any of the files within `dev/` or `src/`.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
Introduced initial support for an experimental `backstage.role` field in package.json, as well as experimental and hidden `migrate` and `script` sub-commands. We do not recommend usage of any of these additions yet.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-auth-backend': minor
---
The `callbackUrl` option of `OAuthAdapter` is now required.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-todo': minor
---
**BREAKING**: The `EntityTodoContent` is now a routable extension. This means it must be rendered within a route, but that's most likely already the case for most apps. The mount point `RouteRef` is available via `todoPlugin.routes.entityContent`.
-7
View File
@@ -1,7 +0,0 @@
---
'@backstage/cli': patch
---
Introduces a new `--release` parameter to the `backstage-cli versions:bump` command.
The release can be either a specific version, for example `0.99.1`, or the latest `main` or `next` release.
The default behavior is to bump to the latest `main` release.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-newrelic-dashboard': patch
---
Export DashboardSnapshotComponent from new-relic-dashboard-plugin
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/core-components': patch
---
chore: bump `ansi-regex` from `5.0.1` to `6.0.1`
-18
View File
@@ -1,18 +0,0 @@
---
'@backstage/backend-common': patch
'@backstage/backend-tasks': patch
'@backstage/backend-test-utils': patch
'@backstage/plugin-app-backend': patch
'@backstage/plugin-auth-backend': patch
'@backstage/plugin-bazaar-backend': patch
'@backstage/plugin-catalog-backend': patch
'@backstage/plugin-code-coverage-backend': patch
'@backstage/plugin-scaffolder-backend': patch
'@backstage/plugin-search-backend-module-pg': patch
'@backstage/plugin-tech-insights-backend': patch
'@backstage/plugin-techdocs-backend': patch
---
chore(deps): bump `knex` from 0.95.6 to 1.0.2
This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/backend-common': patch
---
chore(deps-dev): bump `@types/concat-stream` from 1.6.1 to 2.0.0
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-auth-backend': patch
---
Enabled refresh for the Atlassian provider.
-6
View File
@@ -1,6 +0,0 @@
---
'@backstage/release-manifests': patch
---
Introduces a new package with utilities for fetching release manifests.
This package will primarily be used by the `@backstage/cli` package.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/backend-common': patch
---
Removed unnecessary `get-port` dependency
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-splunk-on-call': patch
---
Add Splunk On-Call plugin support for a `splunk.com/on-call-routing-key` annotation. If the `splunk.com/on-call-routing-key` is provided, the plugin displays a Splunk On-Call card for each of the teams associated with the routing key.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/core-components': patch
---
Adjust ErrorPage to accept optional supportUrl property to override app support config. Update type of additionalInfo property to be ReactNode to accept both string and component.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-scaffolder': patch
---
Adds a loading bar to the scaffolder task page if the task is still loading. This can happen if it takes a while for a task worker to pick up a task.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
The experimental types build enabled by `--experimental-type-build` now runs in a separate worker thread.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
The file path printed by the default lint formatter is now relative to the repository root, rather than the individual package.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-auth-backend': patch
---
Added a new `cookieConfigurer` option to `AuthProviderConfig` that makes it possible to override the default logic for configuring OAuth provider cookies.
-14
View File
@@ -1,14 +0,0 @@
---
'@backstage/create-app': patch
---
Switched the `file:` dependency for a `link:` dependency in the `backend` package. This makes sure that the `app` package is linked in rather than copied.
To apply this update to an existing app, make the following change to `packages/backend/package.json`:
```diff
"dependencies": {
- "app": "file:../app",
+ "app": "link:../app",
"@backstage/backend-common": "^{{version '@backstage/backend-common'}}",
```
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
Tweaked frontend bundling configuration to avoid leaking declarations into global scope.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-catalog-backend-module-msgraph': patch
---
Add userExpand option to allow users to expand fields retrieved from the Graph API - for use in custom transformers
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-search': patch
---
Modify modal search to clamp result length to 5 rows.
-58
View File
@@ -1,58 +0,0 @@
---
'@backstage/create-app': patch
---
**BREAKING:** Updated `knex` to major version 1, which also implies changing out
the underlying `sqlite` implementation.
The old `sqlite3` NPM library has been abandoned by its maintainers, which has
led to unhandled security reports and other issues. Therefore, in the `knex` 1.x
release line they have instead switched over to the [`@vscode/sqlite3`
library](https://github.com/microsoft/vscode-node-sqlite3) by default, which is
actively maintained by Microsoft.
This means that as you update to this version of Backstage, there are two
breaking changes that you will have to address in your own repository:
## Bumping `knex` itself
All `package.json` files of your repo that used to depend on a 0.x version of
`knex`, should now be updated to depend on the 1.x release line. This applies in
particular to `packages/backend`, but may also occur in backend plugins or
libraries.
```diff
- "knex": "^0.95.1",
+ "knex": "^1.0.2",
```
Almost all existing database code will continue to function without modification
after this bump. The only significant difference that we discovered in the main
repo, is that the `alter()` function had a slightly different signature in
migration files. It now accepts an object with `alterType` and `alterNullable`
fields that clarify a previous grey area such that the intent of the alteration
is made explicit. This is caught by `tsc` and your editor if you are using the
`@ts-check` and `@param` syntax in your migration files
([example](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/migrations/20220116144621_remove_legacy.js#L17)),
which we strongly recommend.
See the [`knex` documentation](https://knexjs.org/#Schema-alter) for more
information about the `alter` syntax.
Also see the [`knex` changelog](https://knexjs.org/#changelog) for information
about breaking changes in the 1.x line; if you are using `RETURNING` you may
want to make some additional modifications in your code.
## Switching out `sqlite3`
All `package.json` files of your repo that used to depend on `sqlite3`, should
now be updated to depend on `@vscode/sqlite3`. This applies in particular to
`packages/backend`, but may also occur in backend plugins or libraries.
```diff
- "sqlite3": "^5.0.1",
+ "@vscode/sqlite3": "^5.0.7",
```
These should be functionally equivalent, except that the new library will have
addressed some long standing problems with old transitive dependencies etc.
-161
View File
@@ -1,161 +0,0 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"example-app": "0.2.63",
"@backstage/app-defaults": "0.1.6",
"example-backend": "0.2.63",
"@backstage/backend-common": "0.10.6",
"@backstage/backend-tasks": "0.1.5",
"@backstage/backend-test-utils": "0.1.16",
"@backstage/catalog-client": "0.5.5",
"@backstage/catalog-model": "0.9.10",
"@backstage/cli": "0.13.1",
"@backstage/cli-common": "0.1.6",
"@backstage/codemods": "0.1.32",
"@backstage/config": "0.1.13",
"@backstage/config-loader": "0.9.3",
"@backstage/core-app-api": "0.5.2",
"@backstage/core-components": "0.8.7",
"@backstage/core-plugin-api": "0.6.0",
"@backstage/create-app": "0.4.18",
"@backstage/dev-utils": "0.2.20",
"e2e-test": "0.2.0",
"@backstage/errors": "0.2.0",
"@backstage/integration": "0.7.2",
"@backstage/integration-react": "0.1.20",
"@backstage/search-common": "0.2.2",
"@techdocs/cli": "0.8.12",
"techdocs-cli-embedded-app": "0.2.62",
"@backstage/techdocs-common": "0.11.6",
"@backstage/test-utils": "0.2.4",
"@backstage/theme": "0.2.14",
"@backstage/types": "0.1.1",
"@backstage/version-bridge": "0.1.1",
"@backstage/plugin-airbrake": "0.1.2",
"@backstage/plugin-allure": "0.1.13",
"@backstage/plugin-analytics-module-ga": "0.1.8",
"@backstage/plugin-apache-airflow": "0.1.5",
"@backstage/plugin-api-docs": "0.7.1",
"@backstage/plugin-app-backend": "0.3.23",
"@backstage/plugin-auth-backend": "0.9.0",
"@backstage/plugin-azure-devops": "0.1.13",
"@backstage/plugin-azure-devops-backend": "0.3.2",
"@backstage/plugin-azure-devops-common": "0.2.0",
"@backstage/plugin-badges": "0.2.21",
"@backstage/plugin-badges-backend": "0.1.17",
"@backstage/plugin-bazaar": "0.1.12",
"@backstage/plugin-bazaar-backend": "0.1.8",
"@backstage/plugin-bitrise": "0.1.24",
"@backstage/plugin-catalog": "0.7.11",
"@backstage/plugin-catalog-backend": "0.21.2",
"@backstage/plugin-catalog-backend-module-ldap": "0.3.11",
"@backstage/plugin-catalog-backend-module-msgraph": "0.2.14",
"@backstage/plugin-catalog-common": "0.1.2",
"@backstage/plugin-catalog-graph": "0.2.9",
"@backstage/plugin-catalog-graphql": "0.3.1",
"@backstage/plugin-catalog-import": "0.8.0",
"@backstage/plugin-catalog-react": "0.6.13",
"@backstage/plugin-circleci": "0.2.36",
"@backstage/plugin-cloudbuild": "0.2.34",
"@backstage/plugin-code-coverage": "0.1.24",
"@backstage/plugin-code-coverage-backend": "0.1.21",
"@backstage/plugin-config-schema": "0.1.20",
"@backstage/plugin-cost-insights": "0.11.19",
"@backstage/plugin-explore": "0.3.28",
"@backstage/plugin-explore-react": "0.0.11",
"@backstage/plugin-firehydrant": "0.1.14",
"@backstage/plugin-fossa": "0.2.29",
"@backstage/plugin-gcp-projects": "0.3.16",
"@backstage/plugin-git-release-manager": "0.3.10",
"@backstage/plugin-github-actions": "0.4.34",
"@backstage/plugin-github-deployments": "0.1.28",
"@backstage/plugin-gitops-profiles": "0.3.15",
"@backstage/plugin-gocd": "0.1.3",
"@backstage/plugin-graphiql": "0.2.29",
"@backstage/plugin-graphql-backend": "0.1.13",
"@backstage/plugin-home": "0.4.13",
"@backstage/plugin-ilert": "0.1.23",
"@backstage/plugin-jenkins": "0.5.19",
"@backstage/plugin-jenkins-backend": "0.1.12",
"@backstage/plugin-kafka": "0.2.27",
"@backstage/plugin-kafka-backend": "0.2.16",
"@backstage/plugin-kubernetes": "0.5.6",
"@backstage/plugin-kubernetes-backend": "0.4.6",
"@backstage/plugin-kubernetes-common": "0.2.2",
"@backstage/plugin-lighthouse": "0.2.36",
"@backstage/plugin-newrelic": "0.3.15",
"@backstage/plugin-newrelic-dashboard": "0.1.5",
"@backstage/plugin-org": "0.4.1",
"@backstage/plugin-pagerduty": "0.3.24",
"@backstage/plugin-permission-backend": "0.4.2",
"@backstage/plugin-permission-common": "0.4.0",
"@backstage/plugin-permission-node": "0.4.2",
"@backstage/plugin-permission-react": "0.3.0",
"@backstage/plugin-proxy-backend": "0.2.17",
"@backstage/plugin-rollbar": "0.3.25",
"@backstage/plugin-rollbar-backend": "0.1.20",
"@backstage/plugin-scaffolder": "0.12.1",
"@backstage/plugin-scaffolder-backend": "0.15.23",
"@backstage/plugin-scaffolder-backend-module-cookiecutter": "0.1.10",
"@backstage/plugin-scaffolder-backend-module-rails": "0.2.5",
"@backstage/plugin-scaffolder-backend-module-yeoman": "0.1.4",
"@backstage/plugin-scaffolder-common": "0.1.3",
"@backstage/plugin-search": "0.6.1",
"@backstage/plugin-search-backend": "0.4.1",
"@backstage/plugin-search-backend-module-elasticsearch": "0.0.8",
"@backstage/plugin-search-backend-module-pg": "0.2.5",
"@backstage/plugin-search-backend-node": "0.4.5",
"@backstage/plugin-sentry": "0.3.35",
"@backstage/plugin-shortcuts": "0.1.21",
"@backstage/plugin-sonarqube": "0.2.15",
"@backstage/plugin-splunk-on-call": "0.3.21",
"@backstage/plugin-tech-insights": "0.1.7",
"@backstage/plugin-tech-insights-backend": "0.2.3",
"@backstage/plugin-tech-insights-backend-module-jsonfc": "0.1.7",
"@backstage/plugin-tech-insights-common": "0.2.1",
"@backstage/plugin-tech-insights-node": "0.2.1",
"@backstage/plugin-tech-radar": "0.5.4",
"@backstage/plugin-techdocs": "0.13.2",
"@backstage/plugin-techdocs-backend": "0.13.2",
"@backstage/plugin-todo": "0.1.21",
"@backstage/plugin-todo-backend": "0.1.20",
"@backstage/plugin-user-settings": "0.3.18",
"@backstage/plugin-xcmetrics": "0.2.17"
},
"changesets": [
"big-jeans-love",
"brave-tools-drop",
"breezy-windows-jump",
"chilly-pans-jog",
"cool-birds-ring",
"curly-fireants-crash",
"dependabot-e379ac7",
"dependabot-f436b5b",
"early-beds-smoke",
"healthy-flies-fold",
"khaki-jokes-grab",
"loud-monkeys-explode",
"many-terms-type",
"metal-clouds-fail",
"metal-lions-fix",
"nasty-socks-exist",
"neat-icons-fry",
"ninety-dancers-bow",
"old-phones-draw",
"popular-planes-lay",
"pretty-glasses-admire",
"seven-apes-shave",
"seven-teachers-arrive",
"shaggy-buckets-confess",
"shiny-radios-deliver",
"smart-boxes-double",
"tasty-spoons-beg",
"three-dolls-fly",
"three-pigs-sniff",
"twenty-colts-applaud",
"warm-beds-flow",
"wise-peaches-flow",
"wise-plants-tease"
]
}
-9
View File
@@ -1,9 +0,0 @@
---
'@backstage/cli': patch
---
Removed the `import/no-duplicates` lint rule from the frontend and backend ESLint configurations. This rule is quite expensive to execute and only provides a purely cosmetic benefit, so we opted to remove it from the set of default rules. If you would like to keep this rule you can add it back in your local ESLint configuration:
```js
'import/no-duplicates': 'warn'
```
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-catalog-react': patch
---
Updated `useEntityListProvider` and catalog pickers to respond to external changes to query parameters in the URL, such as two sidebar links that apply different catalog filters.
-6
View File
@@ -1,6 +0,0 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
fix for the `gitlab:publish` action to use the `oauthToken` key when creating a
`Gitlab` client. This only happens if `ctx.input.token` is provided else the key `token` will be used.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-splunk-on-call': patch
---
Correct spelling of 'Acknowledge' in tooltip.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-scaffolder': patch
---
Encode the `formData` in the `queryString` using `JSON.stringify` to keep the types in the decoded value
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-scaffolder': patch
---
The ScaffolderPage can be passed an optional `TaskPageComponent` with a `loadingText` string. It will replace the Loading text in the scaffolder task page.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
Rather than calling `yarn pack`, the `build-workspace` and `backend-bundle` commands now move files directly whenever possible. This cuts out several `yarn` invocations and speeds the packing process up by several orders of magnitude.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
Switched the `lint` command to invoke ESLint directly through its Node.js API rather than spawning a new process.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/core-components': patch
---
The `ErrorPage` now falls back to using the default support configuration if the `ConfigApi` is not available.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
Introduced an experimental and hidden `repo` sub-command, that contains commands that operate on an entire monorepo rather than individual packages.
-5
View File
@@ -1,5 +0,0 @@
---
'@techdocs/cli': patch
---
Updated the HTTP server to allow for simplification of the development of the CLI itself.
-8
View File
@@ -1,8 +0,0 @@
---
'@backstage/plugin-catalog-backend-module-msgraph': patch
'@backstage/plugin-catalog-graph': patch
'@backstage/plugin-catalog-import': patch
'@backstage/plugin-catalog-react': patch
---
Minor API cleanups
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-home': patch
---
Adds new StarredEntities component responsible for rendering a list of starred entities on the home page
@@ -15,7 +15,10 @@ import cookieParser from 'cookie-parser';
import { Request, Response, NextFunction } from 'express';
import { JWT } from 'jose';
import { URL } from 'url';
import { IdentityClient } from '@backstage/plugin-auth-backend';
import {
IdentityClient,
getBearerTokenFromAuthorizationHeader,
} from '@backstage/plugin-auth-node';
// ...
@@ -44,7 +47,7 @@ async function main() {
// ...
const discovery = SingleHostDiscovery.fromConfig(config);
const identity = new IdentityClient({
const identity = IdentityClient.create({
discovery,
issuer: await discovery.getExternalBaseUrl('auth'),
});
@@ -58,7 +61,7 @@ async function main() {
) => {
try {
const token =
IdentityClient.getBearerToken(req.headers.authorization) ||
getBearerTokenFromAuthorizationHeader(req.headers.authorization) ||
req.cookies['token'];
req.user = await identity.authenticate(token);
if (!req.headers.authorization) {
@@ -80,7 +83,7 @@ async function main() {
const apiRouter = Router();
apiRouter.use(cookieParser());
// The auth route must be publically available as it is used during login
// The auth route must be publicly available as it is used during login
apiRouter.use('/auth', await auth(authEnv));
// Add a simple endpoint to be used when setting a token cookie
apiRouter.use('/cookie', authMiddleware, (_req, res) => {
+1 -1
View File
@@ -49,7 +49,7 @@
"**/@roadiehq/**/@backstage/plugin-catalog": "*",
"**/@roadiehq/**/@backstage/catalog-model": "*"
},
"version": "0.67.0-next.0",
"version": "0.67.0",
"dependencies": {
"@manypkg/get-packages": "^1.1.3",
"@microsoft/api-documenter": "^7.15.0",
+7
View File
@@ -1,5 +1,12 @@
# @backstage/app-defaults
## 0.1.7
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.8.8
## 0.1.7-next.0
### Patch Changes
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/app-defaults",
"description": "Provides the default wiring of a Backstage App",
"version": "0.1.7-next.0",
"version": "0.1.7",
"private": false,
"publishConfig": {
"access": "public",
@@ -29,7 +29,7 @@
"clean": "backstage-cli clean"
},
"dependencies": {
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-app-api": "^0.5.2",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/plugin-permission-react": "^0.3.0",
@@ -42,7 +42,7 @@
"react": "^16.13.1 || ^17.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/test-utils": "^0.2.4",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
+46
View File
@@ -1,5 +1,51 @@
# example-app
## 0.2.64
### Patch Changes
- Updated dependencies
- @backstage/cli@0.13.2
- @backstage/plugin-todo@0.2.0
- @backstage/plugin-newrelic-dashboard@0.1.6
- @backstage/core-components@0.8.8
- @backstage/plugin-scaffolder@0.12.2
- @backstage/plugin-search@0.6.2
- @backstage/plugin-catalog-react@0.6.14
- @backstage/plugin-catalog@0.7.12
- @backstage/plugin-catalog-graph@0.2.10
- @backstage/plugin-catalog-import@0.8.1
- @backstage/plugin-home@0.4.14
- @backstage/app-defaults@0.1.7
- @backstage/integration-react@0.1.21
- @backstage/plugin-airbrake@0.1.3
- @backstage/plugin-apache-airflow@0.1.6
- @backstage/plugin-api-docs@0.7.2
- @backstage/plugin-azure-devops@0.1.14
- @backstage/plugin-badges@0.2.22
- @backstage/plugin-circleci@0.2.37
- @backstage/plugin-cloudbuild@0.2.35
- @backstage/plugin-code-coverage@0.1.25
- @backstage/plugin-cost-insights@0.11.20
- @backstage/plugin-explore@0.3.29
- @backstage/plugin-gcp-projects@0.3.17
- @backstage/plugin-github-actions@0.4.35
- @backstage/plugin-gocd@0.1.4
- @backstage/plugin-graphiql@0.2.30
- @backstage/plugin-jenkins@0.5.20
- @backstage/plugin-kafka@0.2.28
- @backstage/plugin-kubernetes@0.5.7
- @backstage/plugin-lighthouse@0.2.37
- @backstage/plugin-newrelic@0.3.16
- @backstage/plugin-pagerduty@0.3.25
- @backstage/plugin-rollbar@0.3.26
- @backstage/plugin-sentry@0.3.36
- @backstage/plugin-shortcuts@0.1.22
- @backstage/plugin-tech-insights@0.1.8
- @backstage/plugin-tech-radar@0.5.5
- @backstage/plugin-techdocs@0.13.3
- @backstage/plugin-user-settings@0.3.19
## 0.2.64-next.0
### Patch Changes
+41 -41
View File
@@ -1,56 +1,56 @@
{
"name": "example-app",
"version": "0.2.64-next.0",
"version": "0.2.64",
"private": true,
"bundled": true,
"dependencies": {
"@backstage/app-defaults": "^0.1.7-next.0",
"@backstage/app-defaults": "^0.1.7",
"@backstage/catalog-model": "^0.9.10",
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/core-app-api": "^0.5.2",
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/integration-react": "^0.1.21-next.0",
"@backstage/plugin-airbrake": "^0.1.3-next.0",
"@backstage/plugin-api-docs": "^0.7.2-next.0",
"@backstage/plugin-azure-devops": "^0.1.14-next.0",
"@backstage/plugin-apache-airflow": "^0.1.6-next.0",
"@backstage/plugin-badges": "^0.2.22-next.0",
"@backstage/plugin-catalog": "^0.7.12-next.0",
"@backstage/integration-react": "^0.1.21",
"@backstage/plugin-airbrake": "^0.1.3",
"@backstage/plugin-api-docs": "^0.7.2",
"@backstage/plugin-azure-devops": "^0.1.14",
"@backstage/plugin-apache-airflow": "^0.1.6",
"@backstage/plugin-badges": "^0.2.22",
"@backstage/plugin-catalog": "^0.7.12",
"@backstage/plugin-catalog-common": "^0.1.2",
"@backstage/plugin-catalog-graph": "^0.2.10-next.0",
"@backstage/plugin-catalog-import": "^0.8.1-next.0",
"@backstage/plugin-catalog-react": "^0.6.14-next.0",
"@backstage/plugin-circleci": "^0.2.37-next.0",
"@backstage/plugin-cloudbuild": "^0.2.35-next.0",
"@backstage/plugin-code-coverage": "^0.1.25-next.0",
"@backstage/plugin-cost-insights": "^0.11.20-next.0",
"@backstage/plugin-explore": "^0.3.29-next.0",
"@backstage/plugin-gcp-projects": "^0.3.17-next.0",
"@backstage/plugin-github-actions": "^0.4.35-next.0",
"@backstage/plugin-gocd": "^0.1.4-next.0",
"@backstage/plugin-graphiql": "^0.2.30-next.0",
"@backstage/plugin-home": "^0.4.14-next.0",
"@backstage/plugin-jenkins": "^0.5.20-next.0",
"@backstage/plugin-kafka": "^0.2.28-next.0",
"@backstage/plugin-kubernetes": "^0.5.7-next.0",
"@backstage/plugin-lighthouse": "^0.2.37-next.0",
"@backstage/plugin-newrelic": "^0.3.16-next.0",
"@backstage/plugin-newrelic-dashboard": "^0.1.6-next.0",
"@backstage/plugin-catalog-graph": "^0.2.10",
"@backstage/plugin-catalog-import": "^0.8.1",
"@backstage/plugin-catalog-react": "^0.6.14",
"@backstage/plugin-circleci": "^0.2.37",
"@backstage/plugin-cloudbuild": "^0.2.35",
"@backstage/plugin-code-coverage": "^0.1.25",
"@backstage/plugin-cost-insights": "^0.11.20",
"@backstage/plugin-explore": "^0.3.29",
"@backstage/plugin-gcp-projects": "^0.3.17",
"@backstage/plugin-github-actions": "^0.4.35",
"@backstage/plugin-gocd": "^0.1.4",
"@backstage/plugin-graphiql": "^0.2.30",
"@backstage/plugin-home": "^0.4.14",
"@backstage/plugin-jenkins": "^0.5.20",
"@backstage/plugin-kafka": "^0.2.28",
"@backstage/plugin-kubernetes": "^0.5.7",
"@backstage/plugin-lighthouse": "^0.2.37",
"@backstage/plugin-newrelic": "^0.3.16",
"@backstage/plugin-newrelic-dashboard": "^0.1.6",
"@backstage/plugin-org": "^0.4.2-next.0",
"@backstage/plugin-pagerduty": "0.3.25-next.0",
"@backstage/plugin-pagerduty": "0.3.25",
"@backstage/plugin-permission-react": "^0.3.0",
"@backstage/plugin-rollbar": "^0.3.26-next.0",
"@backstage/plugin-scaffolder": "^0.12.2-next.0",
"@backstage/plugin-search": "^0.6.2-next.0",
"@backstage/plugin-sentry": "^0.3.36-next.0",
"@backstage/plugin-shortcuts": "^0.1.22-next.0",
"@backstage/plugin-tech-radar": "^0.5.5-next.0",
"@backstage/plugin-techdocs": "^0.13.3-next.0",
"@backstage/plugin-todo": "^0.2.0-next.0",
"@backstage/plugin-user-settings": "^0.3.19-next.0",
"@backstage/plugin-rollbar": "^0.3.26",
"@backstage/plugin-scaffolder": "^0.12.2",
"@backstage/plugin-search": "^0.6.2",
"@backstage/plugin-sentry": "^0.3.36",
"@backstage/plugin-shortcuts": "^0.1.22",
"@backstage/plugin-tech-radar": "^0.5.5",
"@backstage/plugin-techdocs": "^0.13.3",
"@backstage/plugin-todo": "^0.2.0",
"@backstage/plugin-user-settings": "^0.3.19",
"@backstage/search-common": "^0.2.2",
"@backstage/plugin-tech-insights": "^0.1.8-next.0",
"@backstage/plugin-tech-insights": "^0.1.8",
"@backstage/theme": "^0.2.14",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
+12
View File
@@ -1,5 +1,17 @@
# @backstage/backend-common
## 0.10.7
### Patch Changes
- 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
- 599f3dfa83: chore(deps-dev): bump `@types/concat-stream` from 1.6.1 to 2.0.0
- c3868458d8: Removed unnecessary `get-port` dependency
- 04398e946e: Bump `selfsigned` to 2.0.0
## 0.10.7-next.0
### Patch Changes
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-common",
"description": "Common functionality library for Backstage backends",
"version": "0.10.7-next.0",
"version": "0.10.7",
"main": "src/index.ts",
"types": "src/index.ts",
"private": false,
@@ -68,7 +68,7 @@
"node-abort-controller": "^3.0.1",
"node-fetch": "^2.6.1",
"raw-body": "^2.4.1",
"selfsigned": "^1.10.7",
"selfsigned": "^2.0.0",
"stoppable": "^1.1.0",
"tar": "^6.1.2",
"unzipper": "^0.10.11",
@@ -84,7 +84,7 @@
}
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/test-utils": "^0.2.4",
"@types/archiver": "^5.1.0",
"@types/compression": "^1.7.0",
+11
View File
@@ -1,5 +1,16 @@
# @backstage/backend-tasks
## 0.1.6
### Patch Changes
- 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
- Updated dependencies
- @backstage/backend-common@0.10.7
## 0.1.6-next.0
### Patch Changes
+4 -4
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-tasks",
"description": "Common distributed task management library for Backstage backends",
"version": "0.1.6-next.0",
"version": "0.1.6",
"main": "src/index.ts",
"types": "src/index.ts",
"private": false,
@@ -29,7 +29,7 @@
"clean": "backstage-cli clean"
},
"dependencies": {
"@backstage/backend-common": "^0.10.7-next.0",
"@backstage/backend-common": "^0.10.7",
"@backstage/config": "^0.1.13",
"@backstage/errors": "^0.2.0",
"@backstage/types": "^0.1.1",
@@ -43,8 +43,8 @@
"zod": "^3.9.5"
},
"devDependencies": {
"@backstage/backend-test-utils": "^0.1.17-next.0",
"@backstage/cli": "^0.13.2-next.0",
"@backstage/backend-test-utils": "^0.1.17",
"@backstage/cli": "^0.13.2",
"jest": "^26.0.1",
"wait-for-expect": "^3.0.2"
},
+12
View File
@@ -1,5 +1,17 @@
# @backstage/backend-test-utils
## 0.1.17
### Patch Changes
- 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
- Updated dependencies
- @backstage/cli@0.13.2
- @backstage/backend-common@0.10.7
## 0.1.17-next.0
### Patch Changes
+4 -4
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-test-utils",
"description": "Test helpers library for Backstage backends",
"version": "0.1.17-next.0",
"version": "0.1.17",
"main": "src/index.ts",
"types": "src/index.ts",
"private": false,
@@ -30,8 +30,8 @@
"clean": "backstage-cli clean"
},
"dependencies": {
"@backstage/backend-common": "^0.10.7-next.0",
"@backstage/cli": "^0.13.2-next.0",
"@backstage/backend-common": "^0.10.7",
"@backstage/cli": "^0.13.2",
"@backstage/config": "^0.1.13",
"@vscode/sqlite3": "^5.0.7",
"knex": "^1.0.2",
@@ -41,7 +41,7 @@
"uuid": "^8.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"jest": "^26.0.1"
},
"files": [
+34
View File
@@ -1,5 +1,39 @@
# example-backend
## 0.2.64
### Patch Changes
- Updated dependencies
- @backstage/catalog-client@0.6.0
- @backstage/plugin-auth-backend@0.10.0
- @backstage/backend-common@0.10.7
- @backstage/backend-tasks@0.1.6
- @backstage/plugin-app-backend@0.3.24
- @backstage/plugin-catalog-backend@0.21.3
- @backstage/plugin-code-coverage-backend@0.1.22
- @backstage/plugin-scaffolder-backend@0.15.24
- @backstage/plugin-search-backend-module-pg@0.2.6
- @backstage/plugin-tech-insights-backend@0.2.4
- @backstage/plugin-techdocs-backend@0.13.3
- @backstage/plugin-auth-node@0.1.0
- @backstage/plugin-permission-backend@0.4.3
- @backstage/plugin-search-backend@0.4.2
- @backstage/plugin-badges-backend@0.1.18
- @backstage/plugin-jenkins-backend@0.1.13
- @backstage/plugin-todo-backend@0.1.21
- @backstage/plugin-permission-node@0.4.3
- example-app@0.2.64
- @backstage/plugin-azure-devops-backend@0.3.3
- @backstage/plugin-graphql-backend@0.1.14
- @backstage/plugin-kafka-backend@0.2.17
- @backstage/plugin-kubernetes-backend@0.4.7
- @backstage/plugin-proxy-backend@0.2.18
- @backstage/plugin-rollbar-backend@0.1.21
- @backstage/plugin-scaffolder-backend-module-rails@0.2.6
- @backstage/plugin-tech-insights-backend-module-jsonfc@0.1.8
- @backstage/plugin-tech-insights-node@0.2.2
## 0.2.64-next.0
### Patch Changes
+29 -28
View File
@@ -1,6 +1,6 @@
{
"name": "example-backend",
"version": "0.2.64-next.0",
"version": "0.2.64",
"main": "dist/index.cjs.js",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -24,39 +24,40 @@
"migrate:create": "knex migrate:make -x ts"
},
"dependencies": {
"@backstage/backend-common": "^0.10.7-next.0",
"@backstage/backend-tasks": "^0.1.6-next.0",
"@backstage/catalog-client": "^0.5.5",
"@backstage/backend-common": "^0.10.7",
"@backstage/backend-tasks": "^0.1.6",
"@backstage/catalog-client": "^0.6.0",
"@backstage/catalog-model": "^0.9.10",
"@backstage/config": "^0.1.13",
"@backstage/integration": "^0.7.2",
"@backstage/plugin-airbrake-backend": "^0.0.0",
"@backstage/plugin-app-backend": "^0.3.24-next.0",
"@backstage/plugin-auth-backend": "^0.10.0-next.0",
"@backstage/plugin-azure-devops-backend": "^0.3.3-next.0",
"@backstage/plugin-badges-backend": "^0.1.18-next.0",
"@backstage/plugin-catalog-backend": "^0.21.3-next.0",
"@backstage/plugin-code-coverage-backend": "^0.1.22-next.0",
"@backstage/plugin-graphql-backend": "^0.1.14-next.0",
"@backstage/plugin-jenkins-backend": "^0.1.13-next.0",
"@backstage/plugin-kubernetes-backend": "^0.4.7-next.0",
"@backstage/plugin-kafka-backend": "^0.2.17-next.0",
"@backstage/plugin-permission-backend": "^0.4.3-next.0",
"@backstage/plugin-app-backend": "^0.3.24",
"@backstage/plugin-auth-backend": "^0.10.0",
"@backstage/plugin-auth-node": "^0.1.0",
"@backstage/plugin-azure-devops-backend": "^0.3.3",
"@backstage/plugin-badges-backend": "^0.1.18",
"@backstage/plugin-catalog-backend": "^0.21.3",
"@backstage/plugin-code-coverage-backend": "^0.1.22",
"@backstage/plugin-graphql-backend": "^0.1.14",
"@backstage/plugin-jenkins-backend": "^0.1.13",
"@backstage/plugin-kubernetes-backend": "^0.4.7",
"@backstage/plugin-kafka-backend": "^0.2.17",
"@backstage/plugin-permission-backend": "^0.4.3",
"@backstage/plugin-permission-common": "^0.4.0",
"@backstage/plugin-permission-node": "^0.4.3-next.0",
"@backstage/plugin-proxy-backend": "^0.2.18-next.0",
"@backstage/plugin-rollbar-backend": "^0.1.21-next.0",
"@backstage/plugin-scaffolder-backend": "^0.15.24-next.0",
"@backstage/plugin-scaffolder-backend-module-rails": "^0.2.6-next.0",
"@backstage/plugin-search-backend": "^0.4.2-next.0",
"@backstage/plugin-permission-node": "^0.4.3",
"@backstage/plugin-proxy-backend": "^0.2.18",
"@backstage/plugin-rollbar-backend": "^0.1.21",
"@backstage/plugin-scaffolder-backend": "^0.15.24",
"@backstage/plugin-scaffolder-backend-module-rails": "^0.2.6",
"@backstage/plugin-search-backend": "^0.4.2",
"@backstage/plugin-search-backend-node": "^0.4.5",
"@backstage/plugin-search-backend-module-elasticsearch": "^0.0.8",
"@backstage/plugin-search-backend-module-pg": "^0.2.6-next.0",
"@backstage/plugin-techdocs-backend": "^0.13.3-next.0",
"@backstage/plugin-tech-insights-backend": "^0.2.4-next.0",
"@backstage/plugin-tech-insights-node": "^0.2.2-next.0",
"@backstage/plugin-tech-insights-backend-module-jsonfc": "^0.1.8-next.0",
"@backstage/plugin-todo-backend": "^0.1.21-next.0",
"@backstage/plugin-search-backend-module-pg": "^0.2.6",
"@backstage/plugin-techdocs-backend": "^0.13.3",
"@backstage/plugin-tech-insights-backend": "^0.2.4",
"@backstage/plugin-tech-insights-node": "^0.2.2",
"@backstage/plugin-tech-insights-backend-module-jsonfc": "^0.1.8",
"@backstage/plugin-todo-backend": "^0.1.21",
"@gitbeaker/node": "^35.1.0",
"@octokit/rest": "^18.5.3",
"@vscode/sqlite3": "^5.0.7",
@@ -73,7 +74,7 @@
"winston": "^3.2.1"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@types/dockerode": "^3.3.0",
"@types/express": "^4.17.6",
"@types/express-serve-static-core": "^4.17.5"
+2 -2
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { IdentityClient } from '@backstage/plugin-auth-backend';
import { IdentityClient } from '@backstage/plugin-auth-node';
import { createRouter } from '@backstage/plugin-permission-backend';
import { AuthorizeResult } from '@backstage/plugin-permission-common';
import {
@@ -40,7 +40,7 @@ export default async function createPlugin(
logger,
discovery,
policy: new AllowAllPermissionPolicy(),
identity: new IdentityClient({
identity: IdentityClient.create({
discovery,
issuer: await discovery.getExternalBaseUrl('auth'),
}),
+11
View File
@@ -1,5 +1,16 @@
# @backstage/catalog-client
## 0.6.0
### Minor Changes
- f8633307c4: Fixed the return type of the catalog API `getEntityAncestors`, to match the
actual server response shape.
While this technically is a breaking change, the old shape has never worked at
all if you tried to use it - so treating this as an immediately-shipped breaking
bug fix.
## 0.5.5
### Patch Changes
+2 -2
View File
@@ -133,10 +133,10 @@ export type CatalogEntityAncestorsRequest = {
// @public
export type CatalogEntityAncestorsResponse = {
root: EntityName;
rootEntityRef: string;
items: {
entity: Entity;
parents: EntityName[];
parentEntityRefs: string[];
}[];
};
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/catalog-client",
"description": "An isomorphic client for the catalog backend",
"version": "0.5.5",
"version": "0.6.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -35,7 +35,7 @@
"cross-fetch": "^3.0.6"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@types/jest": "^26.0.7",
"msw": "^0.35.0"
},
+2 -2
View File
@@ -121,8 +121,8 @@ export type CatalogEntityAncestorsRequest = {
* @public
*/
export type CatalogEntityAncestorsResponse = {
root: EntityName;
items: { entity: Entity; parents: EntityName[] }[];
rootEntityRef: string;
items: { entity: Entity; parentEntityRefs: string[] }[];
};
/**
+24
View File
@@ -1,5 +1,29 @@
# @backstage/cli
## 0.13.2
### Patch Changes
- bbbaa8ed61: The `plugin:diff` command no longer validates the existence of any of the files within `dev/` or `src/`.
- eaf67f0578: Introduced initial support for an experimental `backstage.role` field in package.json, as well as experimental and hidden `migrate` and `script` sub-commands. We do not recommend usage of any of these additions yet.
- aeb5c69abb: Introduces a new `--release` parameter to the `backstage-cli versions:bump` command.
The release can be either a specific version, for example `0.99.1`, or the latest `main` or `next` release.
The default behavior is to bump to the latest `main` release.
- d59b90852a: The experimental types build enabled by `--experimental-type-build` now runs in a separate worker thread.
- 50a19ff8dd: The file path printed by the default lint formatter is now relative to the repository root, rather than the individual package.
- 63181dee79: Tweaked frontend bundling configuration to avoid leaking declarations into global scope.
- fae2aee878: Removed the `import/no-duplicates` lint rule from the frontend and backend ESLint configurations. This rule is quite expensive to execute and only provides a purely cosmetic benefit, so we opted to remove it from the set of default rules. If you would like to keep this rule you can add it back in your local ESLint configuration:
```js
'import/no-duplicates': 'warn'
```
- b906f98119: Rather than calling `yarn pack`, the `build-workspace` and `backend-bundle` commands now move files directly whenever possible. This cuts out several `yarn` invocations and speeds the packing process up by several orders of magnitude.
- d0c71e2aa4: Switched the `lint` command to invoke ESLint directly through its Node.js API rather than spawning a new process.
- d59b90852a: Introduced an experimental and hidden `repo` sub-command, that contains commands that operate on an entire monorepo rather than individual packages.
- Updated dependencies
- @backstage/release-manifests@0.0.1
## 0.13.2-next.0
### Patch Changes
+5 -5
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/cli",
"description": "CLI for developing Backstage plugins and apps",
"version": "0.13.2-next.0",
"version": "0.13.2",
"private": false,
"publishConfig": {
"access": "public"
@@ -32,7 +32,7 @@
"@backstage/config": "^0.1.13",
"@backstage/config-loader": "^0.9.3",
"@backstage/errors": "^0.2.0",
"@backstage/release-manifests": "^0.0.0",
"@backstage/release-manifests": "^0.0.1",
"@backstage/types": "^0.1.1",
"@hot-loader/react-dom": "^16.13.0",
"@manypkg/get-packages": "^1.1.3",
@@ -118,12 +118,12 @@
"zod": "^3.11.6"
},
"devDependencies": {
"@backstage/backend-common": "^0.10.7-next.0",
"@backstage/backend-common": "^0.10.7",
"@backstage/config": "^0.1.13",
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/core-app-api": "^0.5.2",
"@backstage/dev-utils": "^0.2.21-next.0",
"@backstage/dev-utils": "^0.2.21",
"@backstage/test-utils": "^0.2.4",
"@backstage/theme": "^0.2.14",
"@types/diff": "^5.0.0",
+7
View File
@@ -1,5 +1,12 @@
# @backstage/codemods
## 0.1.33
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.8.8
## 0.1.33-next.0
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/codemods",
"description": "A collection of codemods for Backstage projects",
"version": "0.1.33-next.0",
"version": "0.1.33",
"private": false,
"publishConfig": {
"access": "public",
+10
View File
@@ -1,5 +1,15 @@
# @backstage/core-components
## 0.8.8
### Patch Changes
- 8d785a0b1b: chore: bump `ansi-regex` from `5.0.1` to `6.0.1`
- f2dfbd3fb0: Adjust ErrorPage to accept optional supportUrl property to override app support config. Update type of additionalInfo property to be ReactNode to accept both string and component.
- 19155e0939: Updated React component type declarations to avoid exporting exotic component types.
- 89c84b9108: chore: fixing typescript errors for `TabbedCard.tsx` for React 17.x
- d62bdb7a8e: The `ErrorPage` now falls back to using the default support configuration if the `ConfigApi` is not available.
## 0.8.8-next.0
### Patch Changes
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/core-components",
"description": "Core components used by Backstage plugins and apps",
"version": "0.8.8-next.0",
"version": "0.8.8",
"private": false,
"publishConfig": {
"access": "public",
@@ -74,7 +74,7 @@
},
"devDependencies": {
"@backstage/core-app-api": "^0.5.2",
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/test-utils": "^0.2.4",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
@@ -31,6 +31,13 @@ import { Link, LinkProps } from '../Link';
export type ButtonProps = MaterialButtonProps &
Omit<LinkProps, 'variant' | 'color'>;
/**
* This wrapper is here to reset the color of the Link and make typescript happy.
*/
const LinkWrapper = React.forwardRef<any, LinkProps>((props, ref) => (
<Link ref={ref} {...props} color="initial" />
));
/**
* Thin wrapper on top of material-ui's {@link https://v4.mui.com/components/buttons/ | Button} component
*
@@ -39,23 +46,6 @@ export type ButtonProps = MaterialButtonProps &
*
* Makes the Button to utilise react-router
*/
declare function ButtonType(props: ButtonProps): JSX.Element;
/**
* This wrapper is here to reset the color of the Link and make typescript happy.
*/
const LinkWrapper = React.forwardRef<any, LinkProps>((props, ref) => (
<Link ref={ref} {...props} color="initial" />
));
/** @public */
const ActualButton = React.forwardRef<any, ButtonProps>((props, ref) => (
export const Button = React.forwardRef<any, ButtonProps>((props, ref) => (
<MaterialButton ref={ref} component={LinkWrapper} {...props} />
)) as { (props: ButtonProps): JSX.Element };
// TODO(Rugvip): We use this as a workaround to make the exported type be a
// function, which makes our API reference docs much nicer.
// The first type to be exported gets priority, but it will
// be thrown away when compiling to JS.
// @ts-ignore
export { ButtonType as Button, ActualButton as Button };
)) as (props: ButtonProps) => JSX.Element;
@@ -32,8 +32,6 @@ export type LinkProps = MaterialLinkProps &
noTrack?: boolean;
};
declare function LinkType(props: LinkProps): JSX.Element;
/**
* Given a react node, try to retrieve its text content.
*/
@@ -62,7 +60,7 @@ const getNodeText = (node: React.ReactNode): string => {
* - Makes the Link use react-router
* - Captures Link clicks as analytics events.
*/
const ActualLink = React.forwardRef<any, LinkProps>(
export const Link = React.forwardRef<any, LinkProps>(
({ onClick, noTrack, ...props }, ref) => {
const analytics = useAnalytics();
const to = String(props.to);
@@ -96,11 +94,4 @@ const ActualLink = React.forwardRef<any, LinkProps>(
/>
);
},
);
// TODO(Rugvip): We use this as a workaround to make the exported type be a
// function, which makes our API reference docs much nicer.
// The first type to be exported gets priority, but it will
// be thrown away when compiling to JS.
// @ts-ignore
export { LinkType as Link, ActualLink as Link };
) as (props: LinkProps) => JSX.Element;
@@ -21,13 +21,18 @@ import useMediaQuery from '@material-ui/core/useMediaQuery';
import Badge from '@material-ui/core/Badge';
import TextField from '@material-ui/core/TextField';
import Typography from '@material-ui/core/Typography';
import { CreateCSSProperties } from '@material-ui/core/styles/withStyles';
import {
CreateCSSProperties,
StyledComponentProps,
} from '@material-ui/core/styles/withStyles';
import ArrowRightIcon from '@material-ui/icons/ArrowRight';
import SearchIcon from '@material-ui/icons/Search';
import ArrowDropUp from '@material-ui/icons/ArrowDropUp';
import ArrowDropDown from '@material-ui/icons/ArrowDropDown';
import classnames from 'classnames';
import React, {
ComponentProps,
ComponentType,
forwardRef,
KeyboardEventHandler,
ReactNode,
@@ -504,7 +509,7 @@ export const SidebarItem = forwardRef<any, SidebarItemProps>((props, ref) => {
}
return <SidebarItemBase {...props} ref={ref} />;
});
}) as (props: SidebarItemProps) => JSX.Element;
type SidebarSearchFieldProps = {
onSearch: (input: string) => void;
@@ -580,7 +585,7 @@ export const SidebarSpace = styled('div')(
flex: 1,
},
{ name: 'BackstageSidebarSpace' },
);
) as ComponentType<ComponentProps<'div'> & StyledComponentProps<'root'>>;
export type SidebarSpacerClassKey = 'root';
@@ -589,7 +594,7 @@ export const SidebarSpacer = styled('div')(
height: 8,
},
{ name: 'BackstageSidebarSpacer' },
);
) as ComponentType<ComponentProps<'div'> & StyledComponentProps<'root'>>;
export type SidebarDividerClassKey = 'root';
@@ -602,7 +607,7 @@ export const SidebarDivider = styled('hr')(
margin: '12px 0px',
},
{ name: 'BackstageSidebarDivider' },
);
) as ComponentType<ComponentProps<'hr'> & StyledComponentProps<'root'>>;
const styledScrollbar = (theme: Theme): CreateCSSProperties => ({
overflowY: 'auto',
@@ -631,7 +636,7 @@ export const SidebarScrollWrapper = styled('div')(({ theme }) => {
'@media (hover: none)': scrollbarStyles,
'&:hover': scrollbarStyles,
};
});
}) as ComponentType<ComponentProps<'div'> & StyledComponentProps<'root'>>;
/**
* A button which allows you to expand the sidebar when clicked.
@@ -89,12 +89,15 @@ export function TabbedCard(props: PropsWithChildren<Props>) {
let selectedTabContent: ReactNode;
if (!value) {
React.Children.map(children, (child, index) => {
if (index === selectedIndex) selectedTabContent = child?.props.children;
if (React.isValidElement(child) && index === selectedIndex) {
selectedTabContent = child?.props.children;
}
});
} else {
React.Children.map(children, child => {
if (child?.props.value === value)
if (React.isValidElement(child) && child?.props.value === value) {
selectedTabContent = child?.props.children;
}
});
}
+78 -1
View File
@@ -1,5 +1,75 @@
# @backstage/create-app
## 0.4.19
### Patch Changes
- 22f4ecb0e6: Switched the `file:` dependency for a `link:` dependency in the `backend` package. This makes sure that the `app` package is linked in rather than copied.
To apply this update to an existing app, make the following change to `packages/backend/package.json`:
```diff
"dependencies": {
- "app": "file:../app",
+ "app": "link:../app",
"@backstage/backend-common": "^{{version '@backstage/backend-common'}}",
```
- 1dd5a02e91: **BREAKING:** Updated `knex` to major version 1, which also implies changing out
the underlying `sqlite` implementation.
The old `sqlite3` NPM library has been abandoned by its maintainers, which has
led to unhandled security reports and other issues. Therefore, in the `knex` 1.x
release line they have instead switched over to the [`@vscode/sqlite3`
library](https://github.com/microsoft/vscode-node-sqlite3) by default, which is
actively maintained by Microsoft.
This means that as you update to this version of Backstage, there are two
breaking changes that you will have to address in your own repository:
## Bumping `knex` itself
All `package.json` files of your repo that used to depend on a 0.x version of
`knex`, should now be updated to depend on the 1.x release line. This applies in
particular to `packages/backend`, but may also occur in backend plugins or
libraries.
```diff
- "knex": "^0.95.1",
+ "knex": "^1.0.2",
```
Almost all existing database code will continue to function without modification
after this bump. The only significant difference that we discovered in the main
repo, is that the `alter()` function had a slightly different signature in
migration files. It now accepts an object with `alterType` and `alterNullable`
fields that clarify a previous grey area such that the intent of the alteration
is made explicit. This is caught by `tsc` and your editor if you are using the
`@ts-check` and `@param` syntax in your migration files
([example](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/migrations/20220116144621_remove_legacy.js#L17)),
which we strongly recommend.
See the [`knex` documentation](https://knexjs.org/#Schema-alter) for more
information about the `alter` syntax.
Also see the [`knex` changelog](https://knexjs.org/#changelog) for information
about breaking changes in the 1.x line; if you are using `RETURNING` you may
want to make some additional modifications in your code.
## Switching out `sqlite3`
All `package.json` files of your repo that used to depend on `sqlite3`, should
now be updated to depend on `@vscode/sqlite3`. This applies in particular to
`packages/backend`, but may also occur in backend plugins or libraries.
```diff
- "sqlite3": "^5.0.1",
+ "@vscode/sqlite3": "^5.0.7",
```
These should be functionally equivalent, except that the new library will have
addressed some long standing problems with old transitive dependencies etc.
## 0.4.19-next.0
### Patch Changes
@@ -271,11 +341,18 @@
}
```
The `.fromConfig` of the `DefaultCatalogCollator` also now takes a `tokenManager` as a parameter.
```diff
- collator: DefaultCatalogCollator.fromConfig(config, { discovery }),
+ collator: DefaultCatalogCollator.fromConfig(config, { discovery, tokenManager }),
```
- a0d446c8ec: Replaced EntitySystemDiagramCard with EntityCatalogGraphCard
To make this change to an existing app:
Add `@backstage/plugin-catalog-graph` as a `dependency` in `packages/app/package.json`
Add `@backstage/plugin-catalog-graph` as a `dependency` in `packages/app/package.json` or `cd packages/app && yarn add @backstage/plugin-catalog-graph`.
Apply the following changes to the `packages/app/src/components/catalog/EntityPage.tsx` file:
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/create-app",
"description": "A CLI that helps you create your own Backstage app",
"version": "0.4.19-next.0",
"version": "0.4.19",
"private": false,
"publishConfig": {
"access": "public"
+10
View File
@@ -1,5 +1,15 @@
# @backstage/dev-utils
## 0.2.21
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.8.8
- @backstage/plugin-catalog-react@0.6.14
- @backstage/app-defaults@0.1.7
- @backstage/integration-react@0.1.21
## 0.2.21-next.0
### Patch Changes
+6 -6
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/dev-utils",
"description": "Utilities for developing Backstage plugins.",
"version": "0.2.21-next.0",
"version": "0.2.21",
"private": false,
"publishConfig": {
"access": "public",
@@ -29,13 +29,13 @@
"clean": "backstage-cli clean"
},
"dependencies": {
"@backstage/app-defaults": "^0.1.7-next.0",
"@backstage/app-defaults": "^0.1.7",
"@backstage/core-app-api": "^0.5.2",
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/catalog-model": "^0.9.10",
"@backstage/integration-react": "^0.1.21-next.0",
"@backstage/plugin-catalog-react": "^0.6.14-next.0",
"@backstage/integration-react": "^0.1.21",
"@backstage/plugin-catalog-react": "^0.6.14",
"@backstage/test-utils": "^0.2.4",
"@backstage/theme": "^0.2.14",
"@material-ui/core": "^4.12.2",
@@ -55,7 +55,7 @@
"react-dom": "^16.13.1 || ^17.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@types/jest": "^26.0.7",
"@types/node": "^14.14.32"
},
+7
View File
@@ -1,5 +1,12 @@
# @backstage/integration-react
## 0.1.21
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.8.8
## 0.1.21-next.0
### Patch Changes
+4 -4
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/integration-react",
"description": "Frontend package for managing integrations towards external systems",
"version": "0.1.21-next.0",
"version": "0.1.21",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -22,7 +22,7 @@
},
"dependencies": {
"@backstage/config": "^0.1.13",
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/integration": "^0.7.2",
"@backstage/theme": "^0.2.14",
@@ -35,8 +35,8 @@
"react": "^16.13.1 || ^17.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/dev-utils": "^0.2.21-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/dev-utils": "^0.2.21",
"@backstage/test-utils": "^0.2.4",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
+7
View File
@@ -1 +1,8 @@
# @backstage/release-manifests
## 0.0.1
### Patch Changes
- aeb5c69abb: Introduces a new package with utilities for fetching release manifests.
This package will primarily be used by the `@backstage/cli` package.
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/release-manifests",
"description": "Helper library for receiving release manifests",
"version": "0.0.0",
"version": "0.0.1",
"private": false,
"main": "src/index.ts",
"types": "src/index.ts",
@@ -1,5 +1,17 @@
# techdocs-cli-embedded-app
## 0.2.63
### Patch Changes
- Updated dependencies
- @backstage/cli@0.13.2
- @backstage/core-components@0.8.8
- @backstage/plugin-catalog@0.7.12
- @backstage/app-defaults@0.1.7
- @backstage/integration-react@0.1.21
- @backstage/plugin-techdocs@0.13.3
## 0.2.63-next.0
### Patch Changes
@@ -1,19 +1,19 @@
{
"name": "techdocs-cli-embedded-app",
"version": "0.2.63-next.0",
"version": "0.2.63",
"private": true,
"bundled": true,
"dependencies": {
"@backstage/app-defaults": "^0.1.7-next.0",
"@backstage/app-defaults": "^0.1.7",
"@backstage/catalog-model": "^0.9.10",
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/config": "^0.1.13",
"@backstage/core-app-api": "^0.5.2",
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/integration-react": "^0.1.21-next.0",
"@backstage/plugin-catalog": "^0.7.12-next.0",
"@backstage/plugin-techdocs": "^0.13.3-next.0",
"@backstage/integration-react": "^0.1.21",
"@backstage/plugin-catalog": "^0.7.12",
"@backstage/plugin-techdocs": "^0.13.3",
"@backstage/test-utils": "^0.2.4",
"@backstage/theme": "^0.2.14",
"@material-ui/core": "^4.11.0",
@@ -26,7 +26,7 @@
"react-use": "^17.2.4"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
"@testing-library/user-event": "^13.1.8",
+9
View File
@@ -1,5 +1,14 @@
# @techdocs/cli
## 0.8.13
### Patch Changes
- b70c186194: Updated the HTTP server to allow for simplification of the development of the CLI itself.
- Updated dependencies
- @backstage/backend-common@0.10.7
- @backstage/techdocs-common@0.11.7
## 0.8.13-next.0
### Patch Changes
+4 -4
View File
@@ -1,7 +1,7 @@
{
"name": "@techdocs/cli",
"description": "Utility CLI for managing TechDocs sites in Backstage.",
"version": "0.8.13-next.0",
"version": "0.8.13",
"private": false,
"publishConfig": {
"access": "public"
@@ -33,7 +33,7 @@
"techdocs-cli": "bin/techdocs-cli"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@types/commander": "^2.12.2",
"@types/fs-extra": "^9.0.6",
"@types/http-proxy": "^1.17.4",
@@ -56,11 +56,11 @@
"ext": "ts"
},
"dependencies": {
"@backstage/backend-common": "^0.10.7-next.0",
"@backstage/backend-common": "^0.10.7",
"@backstage/catalog-model": "^0.9.10",
"@backstage/cli-common": "^0.1.6",
"@backstage/config": "^0.1.13",
"@backstage/techdocs-common": "^0.11.7-next.0",
"@backstage/techdocs-common": "^0.11.7",
"@types/dockerode": "^3.3.0",
"commander": "^6.1.0",
"dockerode": "^3.3.1",
+7
View File
@@ -1,5 +1,12 @@
# @backstage/techdocs-common
## 0.11.7
### Patch Changes
- Updated dependencies
- @backstage/backend-common@0.10.7
## 0.11.7-next.0
### Patch Changes
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/techdocs-common",
"description": "Common functionalities for TechDocs, to be shared between techdocs-backend plugin and techdocs-cli",
"version": "0.11.7-next.0",
"version": "0.11.7",
"main": "src/index.ts",
"types": "src/index.ts",
"private": false,
@@ -38,7 +38,7 @@
"dependencies": {
"@azure/identity": "^2.0.1",
"@azure/storage-blob": "^12.5.0",
"@backstage/backend-common": "^0.10.7-next.0",
"@backstage/backend-common": "^0.10.7",
"@backstage/catalog-model": "^0.9.10",
"@backstage/config": "^0.1.13",
"@backstage/errors": "^0.2.0",
@@ -60,7 +60,7 @@
"winston": "^3.2.1"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@types/fs-extra": "^9.0.5",
"@types/js-yaml": "^4.0.0",
"@types/mime-types": "^2.1.0",
+7
View File
@@ -1,5 +1,12 @@
# @backstage/plugin-airbrake
## 0.1.3
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.8.8
## 0.1.3-next.0
### Patch Changes
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-airbrake",
"version": "0.1.3-next.0",
"version": "0.1.3",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -20,7 +20,7 @@
"clean": "backstage-cli clean"
},
"dependencies": {
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/theme": "^0.2.14",
"@material-ui/core": "^4.12.2",
@@ -34,10 +34,10 @@
},
"devDependencies": {
"@types/object-hash": "^2.2.1",
"@backstage/app-defaults": "^0.1.7-next.0",
"@backstage/cli": "^0.13.2-next.0",
"@backstage/app-defaults": "^0.1.7",
"@backstage/cli": "^0.13.2",
"@backstage/core-app-api": "^0.5.2",
"@backstage/dev-utils": "^0.2.21-next.0",
"@backstage/dev-utils": "^0.2.21",
"@backstage/test-utils": "^0.2.4",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
+8
View File
@@ -1,5 +1,13 @@
# @backstage/plugin-allure
## 0.1.14
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.8.8
- @backstage/plugin-catalog-react@0.6.14
## 0.1.14-next.0
### Patch Changes
+5 -5
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-allure",
"description": "A Backstage plugin that integrates with Allure",
"version": "0.1.14-next.0",
"version": "0.1.14",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -23,9 +23,9 @@
},
"dependencies": {
"@backstage/catalog-model": "^0.9.10",
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/plugin-catalog-react": "^0.6.14-next.0",
"@backstage/plugin-catalog-react": "^0.6.14",
"@backstage/theme": "^0.2.14",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
@@ -37,9 +37,9 @@
"react": "^16.13.1 || ^17.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/core-app-api": "^0.5.2",
"@backstage/dev-utils": "^0.2.21-next.0",
"@backstage/dev-utils": "^0.2.21",
"@backstage/test-utils": "^0.2.4",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
+7
View File
@@ -1,5 +1,12 @@
# @backstage/plugin-analytics-module-ga
## 0.1.9
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.8.8
## 0.1.9-next.0
### Patch Changes
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-analytics-module-ga",
"version": "0.1.9-next.0",
"version": "0.1.9",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -22,7 +22,7 @@
},
"dependencies": {
"@backstage/config": "^0.1.13",
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/theme": "^0.2.14",
"@material-ui/core": "^4.12.2",
@@ -35,9 +35,9 @@
"react": "^16.13.1 || ^17.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/core-app-api": "^0.5.2",
"@backstage/dev-utils": "^0.2.21-next.0",
"@backstage/dev-utils": "^0.2.21",
"@backstage/test-utils": "^0.2.4",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
+7
View File
@@ -1,5 +1,12 @@
# @backstage/plugin-apache-airflow
## 0.1.6
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.8.8
## 0.1.6-next.0
### Patch Changes
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-apache-airflow",
"version": "0.1.6-next.0",
"version": "0.1.6",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -20,7 +20,7 @@
"clean": "backstage-cli clean"
},
"dependencies": {
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
@@ -33,9 +33,9 @@
"react": "^16.13.1 || ^17.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/core-app-api": "^0.5.2",
"@backstage/dev-utils": "^0.2.21-next.0",
"@backstage/dev-utils": "^0.2.21",
"@backstage/test-utils": "^0.2.4",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
+9
View File
@@ -1,5 +1,14 @@
# @backstage/plugin-api-docs
## 0.7.2
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.8.8
- @backstage/plugin-catalog-react@0.6.14
- @backstage/plugin-catalog@0.7.12
## 0.7.2-next.0
### Patch Changes
+6 -6
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-api-docs",
"description": "A Backstage plugin that helps represent API entities in the frontend",
"version": "0.7.2-next.0",
"version": "0.7.2",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -32,10 +32,10 @@
"dependencies": {
"@asyncapi/react-component": "1.0.0-next.32",
"@backstage/catalog-model": "^0.9.10",
"@backstage/core-components": "^0.8.8-next.0",
"@backstage/core-components": "^0.8.8",
"@backstage/core-plugin-api": "^0.6.0",
"@backstage/plugin-catalog": "^0.7.12-next.0",
"@backstage/plugin-catalog-react": "^0.6.14-next.0",
"@backstage/plugin-catalog": "^0.7.12",
"@backstage/plugin-catalog-react": "^0.6.14",
"@backstage/theme": "^0.2.14",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
@@ -53,9 +53,9 @@
"react": "^16.13.1 || ^17.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/core-app-api": "^0.5.2",
"@backstage/dev-utils": "^0.2.21-next.0",
"@backstage/dev-utils": "^0.2.21",
"@backstage/test-utils": "^0.2.4",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
+11
View File
@@ -1,5 +1,16 @@
# @backstage/plugin-app-backend
## 0.3.24
### Patch Changes
- 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
- Updated dependencies
- @backstage/backend-common@0.10.7
## 0.3.24-next.0
### Patch Changes
+4 -4
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-app-backend",
"description": "A Backstage backend plugin that serves the Backstage frontend app",
"version": "0.3.24-next.0",
"version": "0.3.24",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -30,7 +30,7 @@
"clean": "backstage-cli clean"
},
"dependencies": {
"@backstage/backend-common": "^0.10.7-next.0",
"@backstage/backend-common": "^0.10.7",
"@backstage/config-loader": "^0.9.3",
"@backstage/config": "^0.1.13",
"@backstage/types": "^0.1.1",
@@ -47,8 +47,8 @@
"yn": "^4.0.0"
},
"devDependencies": {
"@backstage/backend-test-utils": "^0.1.17-next.0",
"@backstage/cli": "^0.13.2-next.0",
"@backstage/backend-test-utils": "^0.1.17",
"@backstage/cli": "^0.13.2",
"@backstage/types": "^0.1.1",
"@types/supertest": "^2.0.8",
"mock-fs": "^5.1.0",
+66
View File
@@ -1,5 +1,71 @@
# @backstage/plugin-auth-backend
## 0.10.0
### Minor Changes
- 08fcda13ef: The `callbackUrl` option of `OAuthAdapter` is now required.
- 6bc86fcf2d: The following breaking changes were made, which may imply specifically needing
to make small adjustments in your custom auth providers.
- **BREAKING**: Moved `IdentityClient`, `BackstageSignInResult`,
`BackstageIdentityResponse`, and `BackstageUserIdentity` to
`@backstage/plugin-auth-node`.
- **BREAKING**: Removed deprecated type `BackstageIdentity`, please use
`BackstageSignInResult` from `@backstage/plugin-auth-node` instead.
While moving over, `IdentityClient` was also changed in the following ways:
- **BREAKING**: Made `IdentityClient.listPublicKeys` private. It was only used
in tests, and should not be part of the API surface of that class.
- **BREAKING**: Removed the static `IdentityClient.getBearerToken`. It is now
replaced by `getBearerTokenFromAuthorizationHeader` from
`@backstage/plugin-auth-node`.
- **BREAKING**: Removed the constructor. Please use the `IdentityClient.create`
static method instead.
Since the `IdentityClient` interface is marked as experimental, this is a
breaking change without a deprecation period.
In your auth providers, you may need to update your imports and usages as
follows (example code; yours may be slightly different):
````diff
-import { IdentityClient } from '@backstage/plugin-auth-backend';
+import {
+ IdentityClient,
+ getBearerTokenFromAuthorizationHeader
+} from '@backstage/plugin-auth-node';
// ...
- const identity = new IdentityClient({
+ const identity = IdentityClient.create({
discovery,
issuer: await discovery.getExternalBaseUrl('auth'),
});```
// ...
const token =
- IdentityClient.getBearerToken(req.headers.authorization) ||
+ getBearerTokenFromAuthorizationHeader(req.headers.authorization) ||
req.cookies['token'];
````
### Patch Changes
- 2441d1cf59: chore(deps): bump `knex` from 0.95.6 to 1.0.2
This also replaces `sqlite3` with `@vscode/sqlite3` 5.0.7
- 3396bc5973: Enabled refresh for the Atlassian provider.
- 08fcda13ef: Added a new `cookieConfigurer` option to `AuthProviderConfig` that makes it possible to override the default logic for configuring OAuth provider cookies.
- Updated dependencies
- @backstage/catalog-client@0.6.0
- @backstage/backend-common@0.10.7
- @backstage/plugin-auth-node@0.1.0
## 0.10.0-next.0
### Minor Changes
+2 -40
View File
@@ -5,12 +5,12 @@
```ts
/// <reference types="node" />
import { BackstageIdentityResponse } from '@backstage/plugin-auth-node';
import { BackstageSignInResult } from '@backstage/plugin-auth-node';
import { CatalogApi } from '@backstage/catalog-client';
import { Config } from '@backstage/config';
import { Entity } from '@backstage/catalog-model';
import express from 'express';
import { JsonValue } from '@backstage/types';
import { JSONWebKey } from 'jose';
import { Logger as Logger_2 } from 'winston';
import { PluginDatabaseManager } from '@backstage/backend-common';
import { PluginEndpointDiscovery } from '@backstage/backend-common';
@@ -128,30 +128,6 @@ export type AwsAlbProviderOptions = {
};
};
// @public @deprecated
export type BackstageIdentity = BackstageSignInResult;
// @public
export interface BackstageIdentityResponse extends BackstageSignInResult {
identity: BackstageUserIdentity;
}
// @public
export interface BackstageSignInResult {
// @deprecated
entity?: Entity;
// @deprecated
id: string;
token: string;
}
// @public
export type BackstageUserIdentity = {
type: 'user';
userEntityRef: string;
ownershipEntityRefs: string[];
};
// Warning: (ae-missing-release-tag) "BitbucketOAuthResult" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
@@ -423,20 +399,6 @@ export type GoogleProviderOptions = {
};
};
// Warning: (ae-missing-release-tag) "IdentityClient" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export class IdentityClient {
constructor(options: { discovery: PluginEndpointDiscovery; issuer: string });
authenticate(token: string | undefined): Promise<BackstageIdentityResponse>;
static getBearerToken(
authorizationHeader: string | undefined,
): string | undefined;
listPublicKeys(): Promise<{
keys: JSONWebKey[];
}>;
}
// Warning: (ae-missing-release-tag) "microsoftEmailSignInResolver" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
+5 -4
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-auth-backend",
"description": "A Backstage backend plugin that handles authentication",
"version": "0.10.0-next.0",
"version": "0.10.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -30,8 +30,9 @@
"clean": "backstage-cli clean"
},
"dependencies": {
"@backstage/backend-common": "^0.10.7-next.0",
"@backstage/catalog-client": "^0.5.5",
"@backstage/plugin-auth-node": "^0.1.0",
"@backstage/backend-common": "^0.10.7",
"@backstage/catalog-client": "^0.6.0",
"@backstage/catalog-model": "^0.9.10",
"@backstage/config": "^0.1.13",
"@backstage/errors": "^0.2.0",
@@ -73,7 +74,7 @@
"yn": "^4.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.13.2-next.0",
"@backstage/cli": "^0.13.2",
"@backstage/test-utils": "^0.2.4",
"@types/body-parser": "^1.19.0",
"@types/cookie-parser": "^1.4.2",
@@ -15,7 +15,6 @@
*/
export { createOidcRouter } from './router';
export { IdentityClient } from './IdentityClient';
export { TokenFactory } from './TokenFactory';
export { DatabaseKeyStore } from './DatabaseKeyStore';
export { MemoryKeyStore } from './MemoryKeyStore';
-1
View File
@@ -21,7 +21,6 @@
*/
export * from './service/router';
export { IdentityClient } from './identity';
export type { TokenIssuer } from './identity';
export * from './providers';
@@ -23,10 +23,12 @@ import {
stringifyEntityRef,
} from '@backstage/catalog-model';
import {
AuthProviderRouteHandlers,
AuthProviderConfig,
BackstageIdentityResponse,
BackstageSignInResult,
} from '@backstage/plugin-auth-node';
import {
AuthProviderRouteHandlers,
AuthProviderConfig,
} from '../../providers/types';
import {
AuthenticationError,
+2 -5
View File
@@ -16,11 +16,8 @@
import express from 'express';
import { Profile as PassportProfile } from 'passport';
import {
RedirectInfo,
BackstageSignInResult,
ProfileInfo,
} from '../../providers/types';
import { BackstageSignInResult } from '@backstage/plugin-auth-node';
import { RedirectInfo, ProfileInfo } from '../../providers/types';
/**
* Common options for passport.js-based OAuth providers

Some files were not shown because too many files have changed in this diff Show More