Version Packages

This commit is contained in:
github-actions[bot]
2020-11-03 20:50:42 +00:00
parent ad88b14b59
commit 715bb76fb5
226 changed files with 2775 additions and 1404 deletions
+132
View File
@@ -0,0 +1,132 @@
# @backstage/create-app
## 0.2.0
### Minor Changes
- 6d29605db: Change the default backend plugin mount point to /api
- 5249594c5: Add service discovery interface and implement for single host deployments
Fixes #1847, #2596
Went with an interface similar to the frontend DiscoveryApi, since it's dead simple but still provides a lot of flexibility in the implementation.
Also ended up with two different methods, one for internal endpoint discovery and one for external. The two use-cases are explained a bit more in the docs, but basically it's service-to-service vs callback URLs.
This did get me thinking about uniqueness and that we're heading towards a global namespace for backend plugin IDs. That's probably fine, but if we're happy with that we should leverage it a bit more to simplify the backend setup. For example we'd have each plugin provide its own ID and not manually mount on paths in the backend.
Draft until we're happy with the implementation, then I can add more docs and changelog entry. Also didn't go on a thorough hunt for places where discovery can be used, but I don't think there are many since it's been pretty awkward to do service-to-service communication.
- 56e4eb589: Make CSP configurable to fix app-backend served app not being able to fetch
See discussion [here on discord](https://discordapp.com/channels/687207715902193673/687235481154617364/758721460163575850)
- d7873e1aa: Default to using internal scope for new plugins
- 6f447b3fc: Remove identity-backend
Not used, and we're heading down the route of identities in the catalog
- 61db1ddc6: Allow node v14 and add to master build matrix
- Upgrade sqlite3@^5.0.0 in @backstage/plugin-catalog-backend
- Add Node 14 to engines in @backstage/create-app
- a768a07fb: Add the ability to import users from GitHub Organization into the catalog.
The token needs to have the scopes `user:email`, `read:user`, and `read:org`.
- f00ca3cb8: Auto-create plugin databases
Relates to #1598.
This creates databases for plugins before handing off control to plugins.
The list of plugins currently need to be hard-coded depending on the installed plugins. A later PR will properly refactor the code to provide a factory pattern where plugins specify what they need, and Knex instances will be provided based on the input.
- 6d97d2d6f: The InfoCard variant `'height100'` is deprecated. Use variant `'gridItem'` instead.
When the InfoCard is displayed as a grid item within a grid, you may want items to have the same height for all items.
Set to the `'gridItem'` variant to display the InfoCard with full height suitable for Grid:
`<InfoCard variant="gridItem">...</InfoCard>`
Changed the InfoCards in '@backstage/plugin-github-actions', '@backstage/plugin-jenkins', '@backstage/plugin-lighthouse'
to pass an optional variant to the corresponding card of the plugin.
As a result the overview content of the EntityPage shows cards with full height suitable for Grid.
- 7aff112af: The default mount point for backend plugins have been changed to /api. These changes are done in the backend package itself, so it is recommended that you sync up existing backend packages with this new pattern.
### Patch Changes
- e67d49bf5: Sync scaffolded backend with example
- 961414d55: Remove discovery api override
- 440a17b39: Bump @backstage/catalog-backend and pass the now required UrlReader interface to the plugin
- 8c2b76e45: **BREAKING CHANGE**
The existing loading of additional config files like `app-config.development.yaml` using APP_ENV or NODE_ENV has been removed.
Instead, the CLI and backend process now accept one or more `--config` flags to load config files.
Without passing any flags, `app-config.yaml` and, if it exists, `app-config.local.yaml` will be loaded.
If passing any `--config <path>` flags, only those files will be loaded, **NOT** the default `app-config.yaml` one.
The old behaviour of for example `APP_ENV=development` can be replicated using the following flags:
```bash
--config ../../app-config.yaml --config ../../app-config.development.yaml
```
- 5a920c6e4: Updated naming of environment variables. New pattern [NAME]\_TOKEN for Github, Gitlab, Azure & Github enterprise access tokens.
### Detail:
- Previously we have to export same token for both, catalog & scaffolder
```bash
export GITHUB_ACCESS_TOKEN=foo
export GITHUB_PRIVATE_TOKEN=foo
```
with latest changes, only single export is sufficient.
```bash
export GITHUB_TOKEN=foo
export GITLAB_TOKEN=foo
export GHE_TOKEN=foo
export AZURE_TOKEN=foo
```
### list:
<table>
<tr>
<th>Old name</th>
<th>New name</th>
</tr>
<tr>
<td>GITHUB_ACCESS_TOKEN</td>
<td>GITHUB_TOKEN</td>
</tr>
<tr>
<td>GITHUB_PRIVATE_TOKEN</td>
<td>GITHUB_TOKEN</td>
</tr>
<tr>
<td>GITLAB_ACCESS_TOKEN</td>
<td>GITLAB_TOKEN</td>
</tr>
<tr>
<td>GITLAB_PRIVATE_TOKEN</td>
<td>GITLAB_TOKEN</td>
</tr>
<tr>
<td>AZURE_PRIVATE_TOKEN</td>
<td>AZURE_TOKEN</td>
</tr>
<tr>
<td>GHE_PRIVATE_TOKEN</td>
<td>GHE_TOKEN</td>
</tr>
</table>
- 67d76b419: Fix for configured templates using 'url' locations even though it's not supported yet
- 7bbeb049f: Change loadBackendConfig to return the config directly
+24 -24
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/create-app",
"description": "Create app package for Backstage",
"version": "0.1.1",
"version": "0.2.0",
"private": false,
"publishConfig": {
"access": "public"
@@ -37,30 +37,30 @@
"recursive-readdir": "^2.2.2"
},
"devDependencies": {
"@backstage/backend-common": "^0.1.1",
"@backstage/catalog-model": "^0.1.1",
"@backstage/cli": "^0.1.1",
"@backstage/backend-common": "^0.2.0",
"@backstage/catalog-model": "^0.2.0",
"@backstage/cli": "^0.2.0",
"@backstage/config": "^0.1.1",
"@backstage/core": "^0.1.1",
"@backstage/plugin-api-docs": "^0.1.1",
"@backstage/plugin-auth-backend": "^0.1.1",
"@backstage/plugin-catalog": "^0.1.1",
"@backstage/plugin-catalog-backend": "^0.1.1",
"@backstage/plugin-circleci": "^0.1.1",
"@backstage/plugin-explore": "^0.1.1",
"@backstage/plugin-github-actions": "^0.1.1",
"@backstage/plugin-lighthouse": "^0.1.1",
"@backstage/plugin-proxy-backend": "^0.1.1",
"@backstage/plugin-register-component": "^0.1.1",
"@backstage/plugin-rollbar-backend": "^0.1.1",
"@backstage/plugin-scaffolder": "^0.1.1",
"@backstage/plugin-scaffolder-backend": "^0.1.1",
"@backstage/plugin-tech-radar": "^0.1.1",
"@backstage/plugin-techdocs": "^0.1.1",
"@backstage/plugin-techdocs-backend": "^0.1.1",
"@backstage/plugin-user-settings": "^0.1.1",
"@backstage/test-utils": "^0.1.1",
"@backstage/theme": "^0.1.1",
"@backstage/core": "^0.2.0",
"@backstage/plugin-api-docs": "^0.2.0",
"@backstage/plugin-auth-backend": "^0.2.0",
"@backstage/plugin-catalog": "^0.2.0",
"@backstage/plugin-catalog-backend": "^0.2.0",
"@backstage/plugin-circleci": "^0.2.0",
"@backstage/plugin-explore": "^0.2.0",
"@backstage/plugin-github-actions": "^0.2.0",
"@backstage/plugin-lighthouse": "^0.2.0",
"@backstage/plugin-proxy-backend": "^0.2.0",
"@backstage/plugin-register-component": "^0.2.0",
"@backstage/plugin-rollbar-backend": "^0.1.2",
"@backstage/plugin-scaffolder": "^0.2.0",
"@backstage/plugin-scaffolder-backend": "^0.2.0",
"@backstage/plugin-tech-radar": "^0.2.0",
"@backstage/plugin-techdocs": "^0.2.0",
"@backstage/plugin-techdocs-backend": "^0.2.0",
"@backstage/plugin-user-settings": "^0.2.0",
"@backstage/test-utils": "^0.1.2",
"@backstage/theme": "^0.2.0",
"@types/fs-extra": "^9.0.1",
"@types/inquirer": "^7.3.1",
"@types/ora": "^3.2.0",