Merge branch 'backstage:master' into master

This commit is contained in:
Bogdan Nechyporenko
2023-09-26 21:30:58 +02:00
committed by GitHub
461 changed files with 6560 additions and 377 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/create-app': patch
---
Create unique temp directory for each `create-app` execution.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-sonarqube-backend': patch
---
Added support for the [new backend system](https://backstage.io/docs/backend-system/)
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Fix for the new backend `start` command to make it work on Windows.
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/cli': minor
---
The new backend start command that used to be enabled by setting `EXPERIMENTAL_BACKEND_START` is now the default. To revert to the old behavior, set `LEGACY_BACKEND_START` instead.
This new command is no longer based on Webpack, but instead uses Node.js loaders to transpile on the fly. Rather than hot reloading modules the entire backend is now restarted on change, but the SQLite database state is still maintained across restarts via a parent process.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': minor
---
include owner chip in catalog search result item
+49 -2
View File
@@ -244,7 +244,54 @@
"@backstage/plugin-user-settings-backend": "0.2.1",
"@backstage/plugin-vault": "0.1.19",
"@backstage/plugin-vault-backend": "0.3.8",
"@backstage/plugin-xcmetrics": "0.2.43"
"@backstage/plugin-xcmetrics": "0.2.43",
"@backstage/e2e-test-utils": "0.0.0"
},
"changesets": []
"changesets": [
"angry-badgers-beg",
"big-spies-beam",
"calm-scissors-rescue",
"chatty-papayas-care",
"clean-forks-love",
"dull-bugs-build",
"dull-dolls-explode",
"dull-experts-kiss",
"dull-laws-camp",
"eighty-actors-type",
"four-jars-protect",
"four-onions-clap",
"fresh-kangaroos-tap",
"gentle-elephants-fold",
"gentle-spies-deny",
"itchy-rabbits-exist",
"large-comics-knock",
"lemon-cups-wait",
"lovely-coins-occur",
"lovely-fans-sniff",
"moody-lobsters-rescue",
"nice-clocks-smash",
"nice-dancers-explain",
"perfect-pumas-protect",
"plenty-llamas-double",
"polite-cooks-perform",
"polite-donuts-fail",
"pretty-apes-sneeze",
"pretty-steaks-serve",
"purple-chefs-wait",
"quick-weeks-explode",
"shy-clouds-reflect",
"silent-years-bake",
"small-pugs-build",
"spotty-badgers-wash",
"stupid-eagles-shave",
"tasty-doors-switch",
"ten-seals-wait",
"thirty-coins-sneeze",
"tiny-garlics-cheer",
"twelve-clouds-design",
"wet-olives-wave",
"wet-timers-chew",
"wild-jobs-greet",
"yellow-rings-invent"
]
}
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-api-docs': patch
---
Adding `requestInterceptor` option to `api-docs` and pass it to SwaggerUI. This will enable to configure a proxy or headers to be sent to all the request made through the `Try it out` button on SwaggerUI.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-common': patch
---
The `useHotCleanup` and `useHotMemoize` helpers are now deprecated, since hot module reloads for backend are being phased out.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
MissingAnnotationEmptyState component can now dynamically generate a YAML example based off the current entity being used.
+1
View File
@@ -401,6 +401,7 @@ tooltip
tooltips
touchpoint
transpilation
transpile
transpiled
transpiler
transpilers
+3
View File
@@ -140,6 +140,9 @@ const app = createApp({
});
```
> NOTE: You can configure sign-in to use a redirect flow with no pop-up by adding
> `enableExperimentalRedirectFlow: true` to the root of your `app-config.yaml`
## Sign-In with Proxy Providers
Some auth providers are so-called "proxy" providers, meaning they're meant to be used
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -50,7 +50,7 @@
"@types/react-dom": "^17",
"mock-fs@^5.2.0": "patch:mock-fs@npm%3A5.2.0#./.yarn/patches/mock-fs-npm-5.2.0-5103a7b507.patch"
},
"version": "1.18.0",
"version": "1.19.0-next.0",
"dependencies": {
"@backstage/errors": "workspace:^",
"@manypkg/get-packages": "^1.1.3"
+13 -2
View File
@@ -1,5 +1,16 @@
# @backstage/app-defaults
## 1.4.4-next.0
### Patch Changes
- Updated dependencies
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/core-components@0.13.6-next.0
- @backstage/core-app-api@1.10.1-next.0
- @backstage/plugin-permission-react@0.4.16-next.0
- @backstage/theme@0.4.2
## 1.4.3
### Patch Changes
@@ -271,7 +282,7 @@
### Minor Changes
- 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
### Patch Changes
@@ -319,7 +330,7 @@
### Minor Changes
- 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/app-defaults",
"description": "Provides the default wiring of a Backstage App",
"version": "1.4.3",
"version": "1.4.4-next.0",
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
@@ -1,5 +1,13 @@
# app-next-example-plugin
## 0.0.2-next.0
### Patch Changes
- Updated dependencies
- @backstage/core-components@0.13.6-next.0
- @backstage/frontend-plugin-api@0.1.1-next.0
## 0.0.1
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "app-next-example-plugin",
"description": "Backstage internal example plugin",
"version": "0.0.1",
"version": "0.0.2-next.0",
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
+77
View File
@@ -1,5 +1,82 @@
# example-app-next
## 0.0.2-next.0
### Patch Changes
- Updated dependencies
- @backstage/frontend-app-api@0.2.0-next.0
- @backstage/plugin-pagerduty@0.6.6-next.0
- @backstage/plugin-catalog-react@1.8.5-next.0
- @backstage/cli@0.23.0-next.0
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/plugin-catalog@1.14.0-next.0
- @backstage/plugin-scaffolder@1.15.1-next.0
- @backstage/plugin-tech-radar@0.6.9-next.0
- @backstage/plugin-user-settings@0.7.11-next.0
- @backstage/plugin-api-docs@0.9.12-next.0
- @backstage/plugin-code-coverage@0.2.18-next.0
- @backstage/plugin-cost-insights@0.12.14-next.0
- @backstage/core-components@0.13.6-next.0
- @backstage/frontend-plugin-api@0.1.1-next.0
- @backstage/integration-react@1.1.20-next.0
- @backstage/plugin-catalog-import@0.10.1-next.0
- @backstage/plugin-github-actions@0.6.6-next.0
- @backstage/plugin-techdocs@1.7.1-next.0
- @backstage/plugin-techdocs-module-addons-contrib@1.1.1-next.0
- @backstage/plugin-adr@0.6.8-next.0
- @backstage/plugin-airbrake@0.3.25-next.0
- @backstage/plugin-azure-devops@0.3.7-next.0
- @backstage/plugin-azure-sites@0.1.14-next.0
- @backstage/plugin-badges@0.2.49-next.0
- @backstage/plugin-catalog-graph@0.2.37-next.0
- @backstage/plugin-circleci@0.3.25-next.0
- @backstage/plugin-cloudbuild@0.3.25-next.0
- @backstage/plugin-dynatrace@7.0.5-next.0
- @backstage/plugin-entity-feedback@0.2.8-next.0
- @backstage/plugin-explore@0.4.11-next.0
- @backstage/plugin-gocd@0.1.31-next.0
- @backstage/plugin-home@0.5.9-next.0
- @backstage/plugin-jenkins@0.8.7-next.0
- @backstage/plugin-kafka@0.3.25-next.0
- @backstage/plugin-kubernetes@0.10.4-next.0
- @backstage/plugin-lighthouse@0.4.10-next.0
- @backstage/plugin-linguist@0.1.10-next.0
- @backstage/plugin-newrelic-dashboard@0.2.18-next.0
- @backstage/plugin-octopus-deploy@0.2.7-next.0
- @backstage/plugin-org@0.6.15-next.0
- @backstage/plugin-playlist@0.1.17-next.0
- @backstage/plugin-puppetdb@0.1.8-next.0
- @backstage/plugin-rollbar@0.4.25-next.0
- @backstage/plugin-scaffolder-react@1.5.6-next.0
- @backstage/plugin-search@1.4.1-next.0
- @backstage/plugin-sentry@0.5.10-next.0
- @backstage/plugin-tech-insights@0.3.17-next.0
- @backstage/plugin-todo@0.2.28-next.0
- @backstage/app-defaults@1.4.4-next.0
- @backstage/config@1.1.0
- @backstage/core-app-api@1.10.1-next.0
- @backstage/plugin-apache-airflow@0.2.16-next.0
- @backstage/plugin-catalog-unprocessed-entities@0.1.4-next.0
- @backstage/plugin-devtools@0.1.5-next.0
- @backstage/plugin-gcalendar@0.3.19-next.0
- @backstage/plugin-gcp-projects@0.3.42-next.0
- @backstage/plugin-graphiql@0.2.55-next.0
- @backstage/plugin-microsoft-calendar@0.1.8-next.0
- @backstage/plugin-newrelic@0.3.41-next.0
- @backstage/plugin-permission-react@0.4.16-next.0
- @backstage/plugin-search-react@1.7.1-next.0
- @backstage/plugin-shortcuts@0.3.15-next.0
- @backstage/plugin-stack-overflow@0.1.21-next.0
- @backstage/plugin-stackstorm@0.1.7-next.0
- @backstage/plugin-techdocs-react@1.1.12-next.0
- app-next-example-plugin@0.0.2-next.0
- @backstage/catalog-model@1.4.2
- @backstage/theme@0.4.2
- @backstage/plugin-catalog-common@1.0.16
- @backstage/plugin-linguist-common@0.1.2
- @backstage/plugin-search-common@1.2.6
## 0.0.1
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "example-app-next",
"version": "0.0.1",
"version": "0.0.2-next.0",
"private": true,
"backstage": {
"role": "frontend"
+76
View File
@@ -1,5 +1,81 @@
# example-app
## 0.2.88-next.0
### Patch Changes
- Updated dependencies
- @backstage/frontend-app-api@0.2.0-next.0
- @backstage/plugin-pagerduty@0.6.6-next.0
- @backstage/plugin-catalog-react@1.8.5-next.0
- @backstage/cli@0.23.0-next.0
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/plugin-catalog@1.14.0-next.0
- @backstage/plugin-scaffolder@1.15.1-next.0
- @backstage/plugin-tech-radar@0.6.9-next.0
- @backstage/plugin-user-settings@0.7.11-next.0
- @backstage/plugin-api-docs@0.9.12-next.0
- @backstage/plugin-code-coverage@0.2.18-next.0
- @backstage/plugin-cost-insights@0.12.14-next.0
- @backstage/core-components@0.13.6-next.0
- @backstage/integration-react@1.1.20-next.0
- @backstage/plugin-catalog-import@0.10.1-next.0
- @backstage/plugin-github-actions@0.6.6-next.0
- @backstage/plugin-techdocs@1.7.1-next.0
- @backstage/plugin-techdocs-module-addons-contrib@1.1.1-next.0
- @backstage/plugin-adr@0.6.8-next.0
- @backstage/plugin-airbrake@0.3.25-next.0
- @backstage/plugin-azure-devops@0.3.7-next.0
- @backstage/plugin-azure-sites@0.1.14-next.0
- @backstage/plugin-badges@0.2.49-next.0
- @backstage/plugin-catalog-graph@0.2.37-next.0
- @backstage/plugin-circleci@0.3.25-next.0
- @backstage/plugin-cloudbuild@0.3.25-next.0
- @backstage/plugin-dynatrace@7.0.5-next.0
- @backstage/plugin-entity-feedback@0.2.8-next.0
- @backstage/plugin-explore@0.4.11-next.0
- @backstage/plugin-gocd@0.1.31-next.0
- @backstage/plugin-home@0.5.9-next.0
- @backstage/plugin-jenkins@0.8.7-next.0
- @backstage/plugin-kafka@0.3.25-next.0
- @backstage/plugin-kubernetes@0.10.4-next.0
- @backstage/plugin-lighthouse@0.4.10-next.0
- @backstage/plugin-linguist@0.1.10-next.0
- @backstage/plugin-newrelic-dashboard@0.2.18-next.0
- @backstage/plugin-nomad@0.1.6-next.0
- @backstage/plugin-octopus-deploy@0.2.7-next.0
- @backstage/plugin-org@0.6.15-next.0
- @backstage/plugin-playlist@0.1.17-next.0
- @backstage/plugin-puppetdb@0.1.8-next.0
- @backstage/plugin-rollbar@0.4.25-next.0
- @backstage/plugin-scaffolder-react@1.5.6-next.0
- @backstage/plugin-search@1.4.1-next.0
- @backstage/plugin-sentry@0.5.10-next.0
- @backstage/plugin-tech-insights@0.3.17-next.0
- @backstage/plugin-todo@0.2.28-next.0
- @backstage/app-defaults@1.4.4-next.0
- @backstage/config@1.1.0
- @backstage/core-app-api@1.10.1-next.0
- @backstage/plugin-apache-airflow@0.2.16-next.0
- @backstage/plugin-catalog-unprocessed-entities@0.1.4-next.0
- @backstage/plugin-devtools@0.1.5-next.0
- @backstage/plugin-gcalendar@0.3.19-next.0
- @backstage/plugin-gcp-projects@0.3.42-next.0
- @backstage/plugin-graphiql@0.2.55-next.0
- @backstage/plugin-microsoft-calendar@0.1.8-next.0
- @backstage/plugin-newrelic@0.3.41-next.0
- @backstage/plugin-permission-react@0.4.16-next.0
- @backstage/plugin-search-react@1.7.1-next.0
- @backstage/plugin-shortcuts@0.3.15-next.0
- @backstage/plugin-stack-overflow@0.1.21-next.0
- @backstage/plugin-stackstorm@0.1.7-next.0
- @backstage/plugin-techdocs-react@1.1.12-next.0
- @backstage/catalog-model@1.4.2
- @backstage/theme@0.4.2
- @backstage/plugin-catalog-common@1.0.16
- @backstage/plugin-linguist-common@0.1.2
- @backstage/plugin-search-common@1.2.6
## 0.2.87
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "example-app",
"version": "0.2.87",
"version": "0.2.88-next.0",
"private": true,
"backstage": {
"role": "frontend"
+17
View File
@@ -1,5 +1,22 @@
# @backstage/backend-app-api
## 0.5.5-next.0
### Patch Changes
- Updated dependencies
- @backstage/plugin-auth-node@0.3.2-next.0
- @backstage/config-loader@1.5.1-next.0
- @backstage/cli-common@0.1.13-next.0
- @backstage/backend-common@0.19.7-next.0
- @backstage/config@1.1.0
- @backstage/backend-plugin-api@0.6.5-next.0
- @backstage/backend-tasks@0.5.10-next.0
- @backstage/cli-node@0.1.5-next.0
- @backstage/errors@1.2.2
- @backstage/types@1.1.1
- @backstage/plugin-permission-node@0.7.16-next.0
## 0.5.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-app-api",
"description": "Core API used by Backstage backend apps",
"version": "0.5.3",
"version": "0.5.5-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+17
View File
@@ -1,5 +1,22 @@
# @backstage/backend-common
## 0.19.7-next.0
### Patch Changes
- 1c3d6fa2b2: The `useHotCleanup` and `useHotMemoize` helpers are now deprecated, since hot module reloads for backend are being phased out.
- Updated dependencies
- @backstage/integration@1.7.1-next.0
- @backstage/config-loader@1.5.1-next.0
- @backstage/cli-common@0.1.13-next.0
- @backstage/config@1.1.0
- @backstage/integration-aws-node@0.1.6
- @backstage/backend-app-api@0.5.5-next.0
- @backstage/backend-dev-utils@0.1.1
- @backstage/backend-plugin-api@0.6.5-next.0
- @backstage/errors@1.2.2
- @backstage/types@1.1.1
## 0.19.5
### Patch Changes
+2 -2
View File
@@ -785,12 +785,12 @@ export type UrlReadersOptions = {
factories?: ReaderFactory[];
};
// @public
// @public @deprecated
export function useHotCleanup(
_module: NodeModule,
cancelEffect: () => void,
): void;
// @public
// @public @deprecated
export function useHotMemoize<T>(_module: NodeModule, valueFactory: () => T): T;
```
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-common",
"description": "Common functionality library for Backstage backends",
"version": "0.19.5",
"version": "0.19.7-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+2
View File
@@ -47,6 +47,7 @@ function findAllAncestors(_module: NodeModule): NodeModule[] {
* Useful for cleaning intervals, timers, requests etc
*
* @public
* @deprecated Hot module reloading is no longer supported for backends.
* @example
* ```ts
* const intervalId = setInterval(doStuff, 1000);
@@ -80,6 +81,7 @@ const CURRENT_HOT_MEMOIZE_INDEX_KEY = 'backstage.io/hmr-memoize-key';
* stateful parts of the backend, e.g. to retain a database.
*
* @public
* @deprecated Hot module reloading is no longer supported for backends.
* @example
* ```ts
* const db = useHotMemoize(module, () => createDB(dbParams));
+9
View File
@@ -1,5 +1,14 @@
# @backstage/backend-defaults
## 0.2.5-next.0
### Patch Changes
- Updated dependencies
- @backstage/backend-common@0.19.7-next.0
- @backstage/backend-app-api@0.5.5-next.0
- @backstage/backend-plugin-api@0.6.5-next.0
## 0.2.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-defaults",
"description": "Backend defaults used by Backstage backend apps",
"version": "0.2.3",
"version": "0.2.5-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+37
View File
@@ -1,5 +1,42 @@
# example-backend-next
## 0.0.16-next.0
### Patch Changes
- Updated dependencies
- @backstage/plugin-sonarqube-backend@0.2.7-next.0
- @backstage/plugin-playlist-backend@0.3.9-next.0
- @backstage/plugin-catalog-backend@1.14.0-next.0
- @backstage/plugin-auth-node@0.3.2-next.0
- @backstage/plugin-adr-backend@0.4.2-next.0
- @backstage/plugin-scaffolder-backend@1.17.3-next.0
- @backstage/plugin-techdocs-backend@1.7.2-next.0
- @backstage/plugin-todo-backend@0.3.3-next.0
- @backstage/backend-defaults@0.2.5-next.0
- @backstage/backend-plugin-api@0.6.5-next.0
- @backstage/backend-tasks@0.5.10-next.0
- @backstage/plugin-app-backend@0.3.53-next.0
- @backstage/plugin-azure-devops-backend@0.4.2-next.0
- @backstage/plugin-badges-backend@0.3.2-next.0
- @backstage/plugin-catalog-backend-module-scaffolder-entity-model@0.1.2-next.0
- @backstage/plugin-catalog-backend-module-unprocessed@0.3.2-next.0
- @backstage/plugin-devtools-backend@0.2.2-next.0
- @backstage/plugin-entity-feedback-backend@0.2.2-next.0
- @backstage/plugin-kubernetes-backend@0.12.2-next.0
- @backstage/plugin-lighthouse-backend@0.3.2-next.0
- @backstage/plugin-linguist-backend@0.5.2-next.0
- @backstage/plugin-permission-backend@0.5.28-next.0
- @backstage/plugin-permission-backend-module-allow-all-policy@0.1.2-next.0
- @backstage/plugin-permission-common@0.7.8
- @backstage/plugin-permission-node@0.7.16-next.0
- @backstage/plugin-proxy-backend@0.4.2-next.0
- @backstage/plugin-search-backend@1.4.5-next.0
- @backstage/plugin-search-backend-module-catalog@0.1.9-next.0
- @backstage/plugin-search-backend-module-explore@0.1.9-next.0
- @backstage/plugin-search-backend-module-techdocs@0.1.9-next.0
- @backstage/plugin-search-backend-node@1.2.9-next.0
## 0.0.15
### Patch Changes
+3 -2
View File
@@ -1,6 +1,6 @@
{
"name": "example-backend-next",
"version": "0.0.15",
"version": "0.0.16-next.0",
"main": "dist/index.cjs.js",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -18,7 +18,7 @@
"backstage"
],
"scripts": {
"start": "EXPERIMENTAL_BACKEND_START=1 backstage-cli package start",
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test",
@@ -53,6 +53,7 @@
"@backstage/plugin-search-backend-module-explore": "workspace:^",
"@backstage/plugin-search-backend-module-techdocs": "workspace:^",
"@backstage/plugin-search-backend-node": "workspace:^",
"@backstage/plugin-sonarqube-backend": "workspace:^",
"@backstage/plugin-techdocs-backend": "workspace:^",
"@backstage/plugin-todo-backend": "workspace:^"
},
+1
View File
@@ -45,5 +45,6 @@ backend.add(import('@backstage/plugin-search-backend-module-techdocs/alpha'));
backend.add(import('@backstage/plugin-search-backend/alpha'));
backend.add(import('@backstage/plugin-techdocs-backend/alpha'));
backend.add(import('@backstage/plugin-todo-backend'));
backend.add(import('@backstage/plugin-sonarqube-backend'));
backend.start();
+11
View File
@@ -1,5 +1,16 @@
# @backstage/backend-plugin-api
## 0.6.5-next.0
### Patch Changes
- Updated dependencies
- @backstage/plugin-auth-node@0.3.2-next.0
- @backstage/config@1.1.0
- @backstage/backend-tasks@0.5.10-next.0
- @backstage/types@1.1.1
- @backstage/plugin-permission-common@0.7.8
## 0.6.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-plugin-api",
"description": "Core API used by Backstage backend plugins",
"version": "0.6.3",
"version": "0.6.5-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
@@ -1,5 +1,28 @@
# @backstage/backend-plugin-manager
## 0.0.2-next.0
### Patch Changes
- Updated dependencies
- @backstage/plugin-catalog-backend@1.14.0-next.0
- @backstage/plugin-auth-node@0.3.2-next.0
- @backstage/cli-common@0.1.13-next.0
- @backstage/backend-common@0.19.7-next.0
- @backstage/plugin-scaffolder-node@0.2.5-next.0
- @backstage/config@1.1.0
- @backstage/backend-plugin-api@0.6.5-next.0
- @backstage/backend-tasks@0.5.10-next.0
- @backstage/cli-node@0.1.5-next.0
- @backstage/errors@1.2.2
- @backstage/types@1.1.1
- @backstage/plugin-events-backend@0.2.14-next.0
- @backstage/plugin-events-node@0.2.14-next.0
- @backstage/plugin-permission-common@0.7.8
- @backstage/plugin-permission-node@0.7.16-next.0
- @backstage/plugin-search-backend-node@1.2.9-next.0
- @backstage/plugin-search-common@1.2.6
## 0.0.1
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-plugin-manager",
"description": "Backstage plugin management backend",
"version": "0.0.1",
"version": "0.0.2-next.0",
"private": true,
"main": "src/index.ts",
"types": "src/index.ts",
+10
View File
@@ -1,5 +1,15 @@
# @backstage/backend-tasks
## 0.5.10-next.0
### Patch Changes
- Updated dependencies
- @backstage/backend-common@0.19.7-next.0
- @backstage/config@1.1.0
- @backstage/errors@1.2.2
- @backstage/types@1.1.1
## 0.5.8
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-tasks",
"description": "Common distributed task management library for Backstage backends",
"version": "0.5.8",
"version": "0.5.10-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+13
View File
@@ -1,5 +1,18 @@
# @backstage/backend-test-utils
## 0.2.6-next.0
### Patch Changes
- 5ddc03813e: Remove third type parameter used for `MockInstance`, in order to be compatible with older versions of `@types/jest`.
- Updated dependencies
- @backstage/plugin-auth-node@0.3.2-next.0
- @backstage/backend-common@0.19.7-next.0
- @backstage/config@1.1.0
- @backstage/backend-app-api@0.5.5-next.0
- @backstage/backend-plugin-api@0.6.5-next.0
- @backstage/types@1.1.1
## 0.2.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-test-utils",
"description": "Test helpers library for Backstage backends",
"version": "0.2.3",
"version": "0.2.6-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+59
View File
@@ -1,5 +1,64 @@
# example-backend
## 0.2.88-next.0
### Patch Changes
- Updated dependencies
- @backstage/plugin-search-backend-module-elasticsearch@1.3.8-next.0
- @backstage/integration@1.7.1-next.0
- @backstage/plugin-playlist-backend@0.3.9-next.0
- @backstage/plugin-rollbar-backend@0.1.50-next.0
- @backstage/plugin-catalog-backend@1.14.0-next.0
- @backstage/plugin-tech-insights-backend@0.5.19-next.0
- @backstage/plugin-code-coverage-backend@0.2.19-next.0
- @backstage/plugin-auth-node@0.3.2-next.0
- @backstage/plugin-scaffolder-backend-module-rails@0.4.22-next.0
- @backstage/backend-common@0.19.7-next.0
- example-app@0.2.88-next.0
- @backstage/plugin-adr-backend@0.4.2-next.0
- @backstage/plugin-scaffolder-backend@1.17.3-next.0
- @backstage/plugin-scaffolder-backend-module-confluence-to-markdown@0.2.6-next.0
- @backstage/plugin-techdocs-backend@1.7.2-next.0
- @backstage/plugin-todo-backend@0.3.3-next.0
- @backstage/config@1.1.0
- @backstage/backend-tasks@0.5.10-next.0
- @backstage/catalog-client@1.4.4
- @backstage/catalog-model@1.4.2
- @backstage/plugin-app-backend@0.3.53-next.0
- @backstage/plugin-auth-backend@0.19.2-next.0
- @backstage/plugin-azure-devops-backend@0.4.2-next.0
- @backstage/plugin-azure-sites-backend@0.1.15-next.0
- @backstage/plugin-badges-backend@0.3.2-next.0
- @backstage/plugin-catalog-backend-module-scaffolder-entity-model@0.1.2-next.0
- @backstage/plugin-catalog-backend-module-unprocessed@0.3.2-next.0
- @backstage/plugin-catalog-node@1.4.6-next.0
- @backstage/plugin-devtools-backend@0.2.2-next.0
- @backstage/plugin-entity-feedback-backend@0.2.2-next.0
- @backstage/plugin-events-backend@0.2.14-next.0
- @backstage/plugin-events-node@0.2.14-next.0
- @backstage/plugin-explore-backend@0.0.15-next.0
- @backstage/plugin-graphql-backend@0.1.43-next.0
- @backstage/plugin-jenkins-backend@0.2.8-next.0
- @backstage/plugin-kafka-backend@0.3.2-next.0
- @backstage/plugin-kubernetes-backend@0.12.2-next.0
- @backstage/plugin-lighthouse-backend@0.3.2-next.0
- @backstage/plugin-linguist-backend@0.5.2-next.0
- @backstage/plugin-nomad-backend@0.1.7-next.0
- @backstage/plugin-permission-backend@0.5.28-next.0
- @backstage/plugin-permission-common@0.7.8
- @backstage/plugin-permission-node@0.7.16-next.0
- @backstage/plugin-proxy-backend@0.4.2-next.0
- @backstage/plugin-search-backend@1.4.5-next.0
- @backstage/plugin-search-backend-module-catalog@0.1.9-next.0
- @backstage/plugin-search-backend-module-explore@0.1.9-next.0
- @backstage/plugin-search-backend-module-pg@0.5.14-next.0
- @backstage/plugin-search-backend-module-techdocs@0.1.9-next.0
- @backstage/plugin-search-backend-node@1.2.9-next.0
- @backstage/plugin-search-common@1.2.6
- @backstage/plugin-tech-insights-backend-module-jsonfc@0.1.37-next.0
- @backstage/plugin-tech-insights-node@0.4.11-next.0
## 0.2.87
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "example-backend",
"version": "0.2.87",
"version": "0.2.88-next.0",
"main": "dist/index.cjs.js",
"types": "src/index.ts",
"license": "Apache-2.0",
+6
View File
@@ -1,5 +1,11 @@
# @backstage/cli-common
## 0.1.13-next.0
### Patch Changes
- de42eebaaf: Bumped dev dependencies `@types/node` and `mock-fs`.
## 0.1.12
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/cli-common",
"description": "Common functionality used by cli, backend, and create-app",
"version": "0.1.12",
"version": "0.1.13-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+9
View File
@@ -1,5 +1,14 @@
# @backstage/cli-node
## 0.1.5-next.0
### Patch Changes
- Updated dependencies
- @backstage/cli-common@0.1.13-next.0
- @backstage/errors@1.2.2
- @backstage/types@1.1.1
## 0.1.4
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/cli-node",
"description": "Node.js library for Backstage CLIs",
"version": "0.1.4",
"version": "0.1.5-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+26
View File
@@ -1,5 +1,31 @@
# @backstage/cli
## 0.23.0-next.0
### Minor Changes
- 7077dbf131: The new backend start command that used to be enabled by setting `EXPERIMENTAL_BACKEND_START` is now the default. To revert to the old behavior, set `LEGACY_BACKEND_START` instead.
This new command is no longer based on Webpack, but instead uses Node.js loaders to transpile on the fly. Rather than hot reloading modules the entire backend is now restarted on change, but the SQLite database state is still maintained across restarts via a parent process.
### Patch Changes
- 68158034e8: Fix for the new backend `start` command to make it work on Windows.
- 21cd3b1b24: Added a template for creating `node-library` packages with `yarn new`.
- de42eebaaf: Bumped dev dependencies `@types/node` and `mock-fs`.
- 3ef18f8c06: Explicitly set `exports: 'named'` for CJS builds, ensuring that they have e.g. `exports["default"] = catalogPlugin;`
- Updated dependencies
- @backstage/integration@1.7.1-next.0
- @backstage/config-loader@1.5.1-next.0
- @backstage/cli-common@0.1.13-next.0
- @backstage/config@1.1.0
- @backstage/release-manifests@0.0.10
- @backstage/catalog-model@1.4.2
- @backstage/cli-node@0.1.5-next.0
- @backstage/errors@1.2.2
- @backstage/eslint-plugin@0.1.3
- @backstage/types@1.1.1
## 0.22.13
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/cli",
"description": "CLI for developing Backstage plugins and apps",
"version": "0.22.13",
"version": "0.23.0-next.0",
"publishConfig": {
"access": "public"
},
@@ -36,7 +36,7 @@ export async function startBackend(options: StartBackendOptions) {
});
await waitForExit();
} else if (process.env.EXPERIMENTAL_BACKEND_START) {
} else if (!process.env.LEGACY_BACKEND_START) {
const waitForExit = await startBackendExperimental({
entry: 'src/index',
checksEnabled: false, // not supported
@@ -21,7 +21,7 @@ import type { ChildProcess } from 'child_process';
import { IpcServer } from './IpcServer';
import { ServerDataStore } from './ServerDataStore';
import debounce from 'lodash/debounce';
import { fileURLToPath } from 'url';
import { fileURLToPath, pathToFileURL } from 'url';
import { isAbsolute as isAbsolutePath } from 'path';
import { paths } from '../paths';
import spawn from 'cross-spawn';
@@ -30,7 +30,7 @@ const loaderArgs = [
'--require',
require.resolve('@esbuild-kit/cjs-loader'),
'--loader',
require.resolve('@esbuild-kit/esm-loader'),
pathToFileURL(require.resolve('@esbuild-kit/esm-loader')).toString(), // Windows prefers a URL here
];
export async function startBackendExperimental(options: BackendServeOptions) {
+8
View File
@@ -1,5 +1,13 @@
# @backstage/codemods
## 0.1.46-next.0
### Patch Changes
- de42eebaaf: Bumped dev dependencies `@types/node` and `mock-fs`.
- Updated dependencies
- @backstage/cli-common@0.1.13-next.0
## 0.1.45
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/codemods",
"description": "A collection of codemods for Backstage projects",
"version": "0.1.45",
"version": "0.1.46-next.0",
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js"
+11
View File
@@ -1,5 +1,16 @@
# @backstage/config-loader
## 1.5.1-next.0
### Patch Changes
- 773ea341d2: The `FileConfigSource` will now retry file reading after a short delay if it reads an empty file. This is to avoid flakiness during watch mode where change events can trigger before the file content has been written.
- Updated dependencies
- @backstage/cli-common@0.1.13-next.0
- @backstage/config@1.1.0
- @backstage/errors@1.2.2
- @backstage/types@1.1.1
## 1.5.0
### Minor Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/config-loader",
"description": "Config loading functionality used by Backstage backend, and CLI",
"version": "1.5.0",
"version": "1.5.1-next.0",
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
+12 -2
View File
@@ -1,5 +1,15 @@
# @backstage/core-app-api
## 1.10.1-next.0
### Patch Changes
- Updated dependencies
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/config@1.1.0
- @backstage/types@1.1.1
- @backstage/version-bridge@1.0.5
## 1.10.0
### Minor Changes
@@ -194,7 +204,7 @@
### Minor Changes
- 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- c15e0cedbe1: The `AuthConnector` interface now supports specifying a set of scopes when
refreshing a session. The `DefaultAuthConnector` implementation passes the
`scope` query parameter to the auth-backend plugin appropriately. The
@@ -255,7 +265,7 @@
### Minor Changes
- 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/core-app-api",
"description": "Core app API used by Backstage apps",
"version": "1.10.0",
"version": "1.10.1-next.0",
"publishConfig": {
"access": "public"
},
+16 -2
View File
@@ -1,5 +1,19 @@
# @backstage/core-components
## 0.13.6-next.0
### Patch Changes
- d19a827ef1: MissingAnnotationEmptyState component can now dynamically generate a YAML example based off the current entity being used.
- Updated dependencies
- @backstage/plugin-catalog-react@1.8.5-next.0
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/config@1.1.0
- @backstage/catalog-model@1.4.2
- @backstage/errors@1.2.2
- @backstage/theme@0.4.2
- @backstage/version-bridge@1.0.5
## 0.13.5
### Patch Changes
@@ -273,7 +287,7 @@
- 67140d9f96f: Upgrade `react-virtualized-auto-sizer´ to version `^1.0.11`
- 6e0b71493df: Switched internal declaration of `DependencyGraphTypes` to use `namespace`.
- c8779cc1d09: Updated `LogLine` component, which is used by the `LogViewer`, to turn URLs into clickable links. This feature is on by default
- 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 1e4f5e91b8e: Bump `zod` and `zod-to-json-schema` dependencies.
- 29ba8267d69: Updated dependency `@material-ui/lab` to `4.0.0-alpha.61`.
- 8e00acb28db: Small tweaks to remove warnings in the console during development (mainly focusing on techdocs)
@@ -351,7 +365,7 @@
### Patch Changes
- 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 8e00acb28db: Small tweaks to remove warnings in the console during development (mainly focusing on techdocs)
- 7245e744ab1: Fixed the font color on `BackstageHeaderLabel` to respect the active page theme.
- Updated dependencies
+3 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/core-components",
"description": "Core components used by Backstage plugins and apps",
"version": "0.13.5",
"version": "0.13.6-next.0",
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
@@ -33,9 +33,11 @@
"start": "backstage-cli package start"
},
"dependencies": {
"@backstage/catalog-model": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/plugin-catalog-react": "workspace:^",
"@backstage/theme": "workspace:^",
"@backstage/version-bridge": "workspace:^",
"@date-io/core": "^1.3.13",
@@ -25,23 +25,8 @@ import { CodeSnippet } from '../CodeSnippet';
import { Link } from '../Link';
import { EmptyState } from './EmptyState';
const COMPONENT_YAML_TEMPLATE = `apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: example
description: example.com
annotations:
ANNOTATION: value
spec:
type: website
lifecycle: production
owner: user:guest`;
const ANNOTATION_REGEXP = /^.*ANNOTATION.*$/m;
const ANNOTATION_YAML = COMPONENT_YAML_TEMPLATE.match(ANNOTATION_REGEXP)![0];
const ANNOTATION_LINE = COMPONENT_YAML_TEMPLATE.split('\n').findIndex(line =>
ANNOTATION_REGEXP.test(line),
);
import { useEntity } from '@backstage/plugin-catalog-react';
import { Entity } from '@backstage/catalog-model';
type Props = {
annotation: string | string[];
@@ -62,19 +47,38 @@ const useStyles = makeStyles<BackstageTheme>(
{ name: 'BackstageMissingAnnotationEmptyState' },
);
function generateLineNumbers(lineCount: number) {
return Array.from(Array(lineCount + 1).keys(), i => i + ANNOTATION_LINE);
function generateYamlExample(
annotations: string[],
entity?: Entity,
): { yamlText: string; lineNumbers: number[] } {
const kind = entity?.kind || 'Component';
const name = entity?.metadata.name || 'example';
const type = entity?.spec?.type || 'website';
const owner = entity?.spec?.owner || 'user:default/guest';
const yamlText = `apiVersion: backstage.io/v1alpha1
kind: ${kind}
metadata:
name: ${name}
annotations:${annotations.map(ann => `\n ${ann}: value`).join('')}
spec:
type: ${type}
owner: ${owner}`;
let line = 6; // Line 6 is the line number that annotations are added to.
const lineNumbers: number[] = [];
annotations.forEach(() => {
lineNumbers.push(line);
line++;
});
return {
yamlText,
lineNumbers,
};
}
function generateComponentYaml(annotations: string[]) {
const annotationYaml = annotations
.map(ann => ANNOTATION_YAML.replace('ANNOTATION', ann))
.join('\n');
return COMPONENT_YAML_TEMPLATE.replace(ANNOTATION_YAML, annotationYaml);
}
function generateDescription(annotations: string[]) {
function generateDescription(annotations: string[], entityKind = 'Component') {
const isSingular = annotations.length <= 1;
return (
<>
@@ -87,13 +91,21 @@ function generateDescription(annotations: string[]) {
</>
))}{' '}
{isSingular ? 'is' : 'are'} missing. You need to add the{' '}
{isSingular ? 'annotation' : 'annotations'} to your component if you want
to enable this tool.
{isSingular ? 'annotation' : 'annotations'} to your {entityKind} if you
want to enable this tool.
</>
);
}
export function MissingAnnotationEmptyState(props: Props) {
let entity: Entity | undefined;
try {
const entityContext = useEntity();
entity = entityContext.entity;
} catch (err) {
// ignore when entity context doesnt exist
}
const { annotation, readMoreUrl } = props;
const annotations = Array.isArray(annotation) ? annotation : [annotation];
const url =
@@ -101,23 +113,25 @@ export function MissingAnnotationEmptyState(props: Props) {
'https://backstage.io/docs/features/software-catalog/well-known-annotations';
const classes = useStyles();
const entityKind = entity?.kind || 'Component';
const { yamlText, lineNumbers } = generateYamlExample(annotations, entity);
return (
<EmptyState
missing="field"
title="Missing Annotation"
description={generateDescription(annotations)}
description={generateDescription(annotations, entityKind)}
action={
<>
<Typography variant="body1">
Add the annotation to your component YAML as shown in the
Add the annotation to your {entityKind} YAML as shown in the
highlighted example below:
</Typography>
<Box className={classes.code}>
<CodeSnippet
text={generateComponentYaml(annotations)}
text={yamlText}
language="yaml"
showLineNumbers
highlightedNumbers={generateLineNumbers(annotations.length)}
highlightedNumbers={lineNumbers}
customStyle={{ background: 'inherit', fontSize: '115%' }}
/>
</Box>
+13
View File
@@ -1,5 +1,18 @@
# @backstage/core-plugin-api
## 1.7.0-next.0
### Minor Changes
- 322bbcae24: Removed the exprimental plugin configuration API. The `__experimentalReconfigure()` from the plugin options as well as the `__experimentalConfigure()` method on plugin instances have both been removed.
### Patch Changes
- Updated dependencies
- @backstage/config@1.1.0
- @backstage/types@1.1.1
- @backstage/version-bridge@1.0.5
## 1.6.0
### Minor Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/core-plugin-api",
"description": "Core API used by Backstage plugins",
"version": "1.6.0",
"version": "1.7.0-next.0",
"publishConfig": {
"access": "public"
},
+25
View File
@@ -1,5 +1,30 @@
# @backstage/create-app
## 0.5.6-next.0
### Patch Changes
- ba6a3b59c1: Removed duplicate `apple-touch-icon` link from `packages/app/public/index.html` that linked to nonexistent icon.
- c8ec0dea4a: Create unique temp directory for each `create-app` execution.
- b665f2ce65: Change base node image from node:18-bullseye-slim to node:18-bookworm-slim due to Docker build error on bullseye.
You can apply these change to your own `Dockerfile` by replacing `node:18-bullseye-slim` with `node:18-bookworm-slim`
- deed089a3d: Bump `cypress` to fix the end-to-end tests
- de42eebaaf: Bumped dev dependencies `@types/node` and `mock-fs`.
- 04a3f65e15: Bump Docker base images to `node:18-bullseye-slim` to fix compatibility issues raised during image build.
You can apply these change to your own `Dockerfile` by replacing `node:16-bullseye-slim` with `node:18-bullseye-slim`
- 5eacd5d213: The E2E test setup based on Cypress has been replaced with one based on [Playwright](https://playwright.dev/). Migrating existing apps is not required as this is a standalone setup, only do so if you also want to switch from Cypress to Playwright.
The scripts to run the E2E tests have been removed from `packages/app/package.json`, as they are now instead run from the root. Instead, a new script has been added to the root `package.json`, `yarn test:e2e`, which runs the E2E tests in development mode, unless `CI` is set in the environment.
The Playwright setup uses utilities from the new `@backstage/e2e-test-utils` package to find and include all packages in the monorepo that have an `e2e-tests` folder.
- Updated dependencies
- @backstage/cli-common@0.1.13-next.0
## 0.5.5
### Patch Changes
+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.5.5",
"version": "0.5.6-next.0",
"publishConfig": {
"access": "public"
},
+1 -6
View File
@@ -36,10 +36,6 @@ const templatingMock = jest.spyOn(tasks, 'templatingTask');
const checkAppExistsMock = jest.spyOn(tasks, 'checkAppExistsTask');
const tryInitGitRepositoryMock = jest.spyOn(tasks, 'tryInitGitRepository');
const readGitConfig = jest.spyOn(tasks, 'readGitConfig');
const createTemporaryAppFolderMock = jest.spyOn(
tasks,
'createTemporaryAppFolderTask',
);
const moveAppMock = jest.spyOn(tasks, 'moveAppTask');
const buildAppMock = jest.spyOn(tasks, 'buildAppTask');
@@ -73,7 +69,6 @@ describe('command entrypoint', () => {
const cmd = {} as unknown as Command;
await createApp(cmd);
expect(checkAppExistsMock).toHaveBeenCalled();
expect(createTemporaryAppFolderMock).toHaveBeenCalled();
expect(tryInitGitRepositoryMock).toHaveBeenCalled();
expect(templatingMock).toHaveBeenCalled();
expect(templatingMock.mock.lastCall?.[0]).toEqual(
@@ -85,7 +80,7 @@ describe('command entrypoint', () => {
'default-app',
),
);
expect(templatingMock.mock.lastCall?.[1]).toEqual(
expect(templatingMock.mock.lastCall?.[1]).toContain(
path.join(tmpdir(), 'MyApp'),
);
expect(moveAppMock).toHaveBeenCalled();
+2 -4
View File
@@ -20,12 +20,12 @@ import inquirer, { Answers } from 'inquirer';
import { resolve as resolvePath } from 'path';
import { findPaths } from '@backstage/cli-common';
import os from 'os';
import fs from 'fs-extra';
import {
Task,
buildAppTask,
checkAppExistsTask,
checkPathExistsTask,
createTemporaryAppFolderTask,
moveAppTask,
templatingTask,
tryInitGitRepository,
@@ -37,7 +37,6 @@ const DEFAULT_BRANCH = 'master';
export default async (opts: OptionValues): Promise<void> => {
/* eslint-disable-next-line no-restricted-syntax */
const paths = findPaths(__dirname);
const answers: Answers = await inquirer.prompt([
{
type: 'input',
@@ -68,7 +67,6 @@ export default async (opts: OptionValues): Promise<void> => {
const templateDir = opts.templatePath
? paths.resolveTarget(opts.templatePath)
: paths.resolveOwn('templates/default-app');
const tempDir = resolvePath(os.tmpdir(), answers.name);
// Use `--path` argument as application directory when specified, otherwise
// create a directory using `answers.name`
@@ -100,7 +98,7 @@ export default async (opts: OptionValues): Promise<void> => {
await checkAppExistsTask(paths.targetDir, answers.name);
Task.section('Creating a temporary app directory');
await createTemporaryAppFolderTask(tempDir);
const tempDir = await fs.mkdtemp(resolvePath(os.tmpdir(), answers.name));
Task.section('Preparing files');
await templatingTask(templateDir, tempDir, {
-25
View File
@@ -24,7 +24,6 @@ import {
buildAppTask,
checkAppExistsTask,
checkPathExistsTask,
createTemporaryAppFolderTask,
moveAppTask,
templatingTask,
tryInitGitRepository,
@@ -163,30 +162,6 @@ describe('tasks', () => {
});
});
describe('createTemporaryAppFolderTask', () => {
it('should create a directory at a given path', async () => {
const tempDir = 'projects/tmpFolder';
await expect(
createTemporaryAppFolderTask(tempDir),
).resolves.not.toThrow();
expect(fs.existsSync(tempDir)).toBe(true);
});
it('should fail if a directory of the same name exists', async () => {
const tempDir = 'projects/dir';
await expect(createTemporaryAppFolderTask(tempDir)).rejects.toThrow(
'file already exists',
);
});
it('should fail if a file of the same name exists', async () => {
const tempDir = 'projects/dir/my-file.txt';
await expect(createTemporaryAppFolderTask(tempDir)).rejects.toThrow(
'file already exists',
);
});
});
describe('buildAppTask', () => {
it('should change to `appDir` and run `yarn install` and `yarn tsc`', async () => {
const mockChdir = jest.spyOn(process, 'chdir');
-16
View File
@@ -178,22 +178,6 @@ export async function checkPathExistsTask(path: string) {
});
}
/**
* Create a folder to store templated files
*
* @param tempDir - target temporary directory
* @throws if `fs.mkdir` fails
*/
export async function createTemporaryAppFolderTask(tempDir: string) {
await Task.forItem('creating', 'temporary directory', async () => {
try {
await fs.mkdir(tempDir);
} catch (error) {
throw new Error(`Failed to create temporary app directory, ${error}`);
}
});
}
/**
* Run `yarn install` and `run tsc` in application directory
*
+15
View File
@@ -1,5 +1,20 @@
# @backstage/dev-utils
## 1.0.22-next.0
### Patch Changes
- Updated dependencies
- @backstage/plugin-catalog-react@1.8.5-next.0
- @backstage/test-utils@1.4.4-next.0
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/core-components@0.13.6-next.0
- @backstage/integration-react@1.1.20-next.0
- @backstage/app-defaults@1.4.4-next.0
- @backstage/core-app-api@1.10.1-next.0
- @backstage/catalog-model@1.4.2
- @backstage/theme@0.4.2
## 1.0.21
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/dev-utils",
"description": "Utilities for developing Backstage plugins.",
"version": "1.0.21",
"version": "1.0.22-next.0",
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
+7
View File
@@ -0,0 +1,7 @@
# @backstage/e2e-test-utils
## 0.1.0-next.0
### Minor Changes
- f5b41b27a9: Initial release.
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/e2e-test-utils",
"description": "Shared end-to-end test utilities Backstage",
"version": "0.0.0",
"version": "0.1.0-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+9
View File
@@ -1,5 +1,14 @@
# e2e-test
## 0.2.8-next.0
### Patch Changes
- Updated dependencies
- @backstage/create-app@0.5.6-next.0
- @backstage/cli-common@0.1.13-next.0
- @backstage/errors@1.2.2
## 0.2.7
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "e2e-test",
"description": "E2E test for verifying Backstage packages",
"version": "0.2.7",
"version": "0.2.8-next.0",
"private": true,
"backstage": {
"role": "cli"
+4
View File
@@ -463,6 +463,10 @@ async function testBackendStart(appDir: string, ...args: string[]) {
!l.includes('check the migration guide at https://a.co/7PzMCcy') &&
!l.includes(
'(Use `node --trace-warnings ...` to show where the warning was created)',
) &&
!l.includes('Custom ESM Loaders is an experimental feature') &&
!l.includes(
'ExperimentalWarning: `globalPreload` is planned for removal',
),
).length !== 0
);
+19
View File
@@ -1,5 +1,24 @@
# @backstage/frontend-app-api
## 0.2.0-next.0
### Minor Changes
- 9d03dfe5e3: The `createApp` config option has been replaced by a new `configLoader` option. There is now also a `pluginLoader` option that can be used to dynamically load plugins into the app.
### Patch Changes
- 322bbcae24: Internal update for removal of experimental plugin configuration API.
- 66d51a4827: Prevents root extension override and duplicated plugin extensions.
- Updated dependencies
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/core-components@0.13.6-next.0
- @backstage/frontend-plugin-api@0.1.1-next.0
- @backstage/config@1.1.0
- @backstage/core-app-api@1.10.1-next.0
- @backstage/plugin-graphiql@0.2.55-next.0
- @backstage/types@1.1.1
## 0.1.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/frontend-app-api",
"version": "0.1.0",
"version": "0.2.0-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -1,5 +1,13 @@
# @backstage/frontend-plugin-api
## 0.1.1-next.0
### Patch Changes
- Updated dependencies
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/types@1.1.1
## 0.1.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/frontend-plugin-api",
"version": "0.1.0",
"version": "0.1.1-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+11
View File
@@ -1,5 +1,16 @@
# @backstage/integration-react
## 1.1.20-next.0
### Patch Changes
- Updated dependencies
- @backstage/integration@1.7.1-next.0
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/core-components@0.13.6-next.0
- @backstage/config@1.1.0
- @backstage/theme@0.4.2
## 1.1.19
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/integration-react",
"description": "Frontend package for managing integrations towards external systems",
"version": "1.1.19",
"version": "1.1.20-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+9
View File
@@ -1,5 +1,14 @@
# @backstage/integration
## 1.7.1-next.0
### Patch Changes
- 3963d0b885: Ensure that all relevant config fields are properly marked as secret
- Updated dependencies
- @backstage/config@1.1.0
- @backstage/errors@1.2.2
## 1.7.0
### Minor Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/integration",
"description": "Helpers for managing integrations towards external systems",
"version": "1.7.0",
"version": "1.7.1-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+11
View File
@@ -1,5 +1,16 @@
# @backstage/repo-tools
## 0.3.5-next.0
### Patch Changes
- de42eebaaf: Bumped dev dependencies `@types/node` and `mock-fs`.
- Updated dependencies
- @backstage/cli-common@0.1.13-next.0
- @backstage/catalog-model@1.4.2
- @backstage/cli-node@0.1.5-next.0
- @backstage/errors@1.2.2
## 0.3.4
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/repo-tools",
"description": "CLI for Backstage repo tooling ",
"version": "0.3.4",
"version": "0.3.5-next.0",
"publishConfig": {
"access": "public"
},
@@ -1,5 +1,24 @@
# techdocs-cli-embedded-app
## 0.2.87-next.0
### Patch Changes
- Updated dependencies
- @backstage/test-utils@1.4.4-next.0
- @backstage/cli@0.23.0-next.0
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/plugin-catalog@1.14.0-next.0
- @backstage/core-components@0.13.6-next.0
- @backstage/integration-react@1.1.20-next.0
- @backstage/plugin-techdocs@1.7.1-next.0
- @backstage/app-defaults@1.4.4-next.0
- @backstage/config@1.1.0
- @backstage/core-app-api@1.10.1-next.0
- @backstage/plugin-techdocs-react@1.1.12-next.0
- @backstage/catalog-model@1.4.2
- @backstage/theme@0.4.2
## 0.2.86
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "techdocs-cli-embedded-app",
"version": "0.2.86",
"version": "0.2.87-next.0",
"private": true,
"backstage": {
"role": "frontend"
+13
View File
@@ -1,5 +1,18 @@
# @techdocs/cli
## 1.5.2-next.0
### Patch Changes
- de42eebaaf: Bumped dev dependencies `@types/node` and `mock-fs`.
- 2b6e572051: Restructured tests.
- Updated dependencies
- @backstage/cli-common@0.1.13-next.0
- @backstage/backend-common@0.19.7-next.0
- @backstage/plugin-techdocs-node@1.8.2-next.0
- @backstage/config@1.1.0
- @backstage/catalog-model@1.4.2
## 1.5.0
### Minor Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@techdocs/cli",
"description": "Utility CLI for managing TechDocs sites in Backstage.",
"version": "1.5.0",
"version": "1.5.2-next.0",
"publishConfig": {
"access": "public"
},
+16 -2
View File
@@ -1,5 +1,19 @@
# @backstage/test-utils
## 1.4.4-next.0
### Patch Changes
- 322bbcae24: Removed the alpha `MockPluginProvider` export since the plugin configuration API has been removed.
- Updated dependencies
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/config@1.1.0
- @backstage/core-app-api@1.10.1-next.0
- @backstage/plugin-permission-react@0.4.16-next.0
- @backstage/theme@0.4.2
- @backstage/types@1.1.1
- @backstage/plugin-permission-common@0.7.8
## 1.4.3
### Patch Changes
@@ -264,7 +278,7 @@
### Minor Changes
- 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
### Patch Changes
@@ -322,7 +336,7 @@
### Minor Changes
- 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
- 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/test-utils",
"description": "Utilities to test Backstage plugins and apps.",
"version": "1.4.3",
"version": "1.4.4-next.0",
"publishConfig": {
"access": "public"
},
+15
View File
@@ -1,5 +1,20 @@
# @backstage/plugin-adr-backend
## 0.4.2-next.0
### Patch Changes
- Updated dependencies
- @backstage/integration@1.7.1-next.0
- @backstage/backend-common@0.19.7-next.0
- @backstage/plugin-adr-common@0.2.16-next.0
- @backstage/config@1.1.0
- @backstage/backend-plugin-api@0.6.5-next.0
- @backstage/catalog-client@1.4.4
- @backstage/catalog-model@1.4.2
- @backstage/errors@1.2.2
- @backstage/plugin-search-common@1.2.6
## 0.4.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-adr-backend",
"version": "0.4.0",
"version": "0.4.2-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+9
View File
@@ -1,5 +1,14 @@
# @backstage/plugin-adr-common
## 0.2.16-next.0
### Patch Changes
- Updated dependencies
- @backstage/integration@1.7.1-next.0
- @backstage/catalog-model@1.4.2
- @backstage/plugin-search-common@1.2.6
## 0.2.15
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-adr-common",
"description": "Common functionalities for the adr plugin",
"version": "0.2.15",
"version": "0.2.16-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+15
View File
@@ -1,5 +1,20 @@
# @backstage/plugin-adr
## 0.6.8-next.0
### Patch Changes
- Updated dependencies
- @backstage/plugin-catalog-react@1.8.5-next.0
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/core-components@0.13.6-next.0
- @backstage/integration-react@1.1.20-next.0
- @backstage/plugin-adr-common@0.2.16-next.0
- @backstage/plugin-search-react@1.7.1-next.0
- @backstage/catalog-model@1.4.2
- @backstage/theme@0.4.2
- @backstage/plugin-search-common@1.2.6
## 0.6.7
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-adr",
"version": "0.6.7",
"version": "0.6.8-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+9
View File
@@ -1,5 +1,14 @@
# @backstage/plugin-airbrake-backend
## 0.3.2-next.0
### Patch Changes
- Updated dependencies
- @backstage/backend-common@0.19.7-next.0
- @backstage/config@1.1.0
- @backstage/backend-plugin-api@0.6.5-next.0
## 0.3.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-airbrake-backend",
"version": "0.3.0",
"version": "0.3.2-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+13
View File
@@ -1,5 +1,18 @@
# @backstage/plugin-airbrake
## 0.3.25-next.0
### Patch Changes
- Updated dependencies
- @backstage/plugin-catalog-react@1.8.5-next.0
- @backstage/test-utils@1.4.4-next.0
- @backstage/core-plugin-api@1.7.0-next.0
- @backstage/core-components@0.13.6-next.0
- @backstage/dev-utils@1.0.22-next.0
- @backstage/catalog-model@1.4.2
- @backstage/theme@0.4.2
## 0.3.24
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-airbrake",
"version": "0.3.24",
"version": "0.3.25-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",

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