Merge branch 'backstage:master' into master2

This commit is contained in:
Abhinv Singh Parmar
2023-10-13 15:33:04 +05:30
committed by GitHub
608 changed files with 10100 additions and 1450 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/create-app': patch
---
Bumped create-app version.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-app-api': patch
---
Fixed bug in `AppRouter` to determine the correct `signOutTargetUrl` if `app.baseUrl` contains a `basePath`
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-app-api': patch
---
The app will now reject any extensions that attach to nonexistent inputs.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-user-settings': patch
---
Added experimental support for declarative integration via the `/alpha` subpath.
+1 -1
View File
@@ -2,6 +2,6 @@
'@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.
**BREAKING** 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`, which is recommended if you haven't migrated to the new backend system.
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.
+11
View File
@@ -0,0 +1,11 @@
---
'@backstage/plugin-scaffolder-backend': minor
---
Updated `publish:gitlab` action properties to support additional Gitlab project settings:
- general project settings provided by gitlab project create API (new `settings` property)
- branch level settings to create additional branches and make them protected (new `branches` property)
- project level environment variables settings (new `projectVariables` property)
Marked existed properties `repoVisibility` and `topics` as deprecated, as they are covered by `settings` property.
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-catalog-graphql': minor
'@backstage/plugin-graphql-backend': minor
---
This package has been deprecated, consider using [@frontside/backstage-plugin-graphql-backend](https://www.npmjs.com/package/@frontside/backstage-plugin-graphql-backend) instead.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-app-api': patch
---
Fixed an issue preventing the routing system to match subroutes
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-plugin-api': patch
---
Plugins can now be assigned `routes` and `externalRoutes` when created.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': minor
---
Added experimental support for declarative integration via the `/alpha` subpath.
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-kubernetes-node': minor
'@backstage/plugin-kubernetes-backend': patch
---
A new plugin has been introduced to house the extension points for Kubernetes backend plugin; at the moment only the `KubernetesObjectsProviderExtensionPoint` is present. The `kubernetes-backend` plugin was modified to use this new extension point.
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-catalog-backend-module-github': patch
'@backstage/cli': patch
---
Request slightly smaller pages of data from GitHub
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-app-api': patch
---
Added the `bindRoutes` option to `createApp`.
+61 -2
View File
@@ -246,52 +246,84 @@
"@backstage/plugin-vault-backend": "0.3.8",
"@backstage/plugin-xcmetrics": "0.2.43",
"@backstage/e2e-test-utils": "0.0.0",
"@backstage/plugin-kubernetes-react": "0.0.0"
"@backstage/plugin-kubernetes-react": "0.0.0",
"@backstage/plugin-auth-backend-module-microsoft-provider": "0.0.0",
"@backstage/plugin-catalog-backend-module-github-org": "0.0.0",
"@backstage/plugin-kubernetes-cluster": "0.0.0",
"@backstage/plugin-kubernetes-node": "0.0.0"
},
"changesets": [
"angry-badgers-beg",
"angry-clocks-exercise",
"big-spies-beam",
"breezy-dryers-thank",
"calm-carpets-kiss",
"calm-scissors-rescue",
"chatty-papayas-care",
"clean-forks-love",
"cold-bees-jam",
"cold-seas-repeat",
"create-app-1696937840",
"dirty-doors-wave",
"dull-bugs-build",
"dull-dolls-explode",
"dull-experts-kiss",
"dull-laws-camp",
"early-toes-develop",
"eight-melons-cough",
"eight-spiders-fold",
"eight-suns-tan",
"eighty-actors-type",
"empty-schools-check",
"fair-frogs-enjoy",
"flat-pandas-tan",
"flat-rules-rush",
"four-jars-protect",
"four-onions-clap",
"four-pans-sin",
"fresh-badgers-study",
"fresh-kangaroos-tap",
"fuzzy-pillows-remain",
"gentle-elephants-fold",
"gentle-spies-deny",
"great-walls-brake",
"happy-books-smoke",
"healthy-laws-divide",
"heavy-forks-tie",
"heavy-ladybugs-leave",
"itchy-bobcats-fly",
"itchy-monkeys-reply",
"itchy-rabbits-exist",
"khaki-tools-tease",
"large-balloons-brush",
"large-comics-knock",
"late-papayas-push",
"lazy-doors-wink",
"lemon-cups-wait",
"lemon-masks-greet",
"little-ligers-cheat",
"loud-hotels-hunt",
"lovely-coins-occur",
"lovely-fans-sniff",
"many-pianos-bow",
"many-swans-eat",
"mean-dancers-burn",
"metal-peas-beam",
"moody-lobsters-rescue",
"nasty-needles-hear",
"nervous-hounds-sleep",
"nice-clocks-smash",
"nice-dancers-explain",
"nice-ghosts-build",
"nine-flies-move",
"nine-garlics-attend",
"odd-pants-sleep",
"olive-cars-rescue",
"olive-geese-rest",
"perfect-pumas-protect",
"perfect-shrimps-attend",
"plenty-llamas-double",
"plenty-toys-cheer",
"polite-cooks-perform",
"polite-donuts-fail",
"polite-trainers-grin",
@@ -301,31 +333,58 @@
"purple-chefs-wait",
"purple-forks-fetch",
"quick-weeks-explode",
"rare-pants-reply",
"red-bees-try",
"red-geese-clean",
"renovate-7d08f6a",
"renovate-a1c52e8",
"rotten-rings-confess",
"serious-pants-lie",
"serious-penguins-tease",
"short-terms-check",
"shy-clouds-reflect",
"shy-seas-sip",
"silent-years-bake",
"silly-swans-invent",
"six-weeks-raise",
"slow-dodos-remember",
"small-books-deliver",
"small-pugs-build",
"smooth-rings-mate",
"spicy-chairs-film",
"spicy-poets-sell",
"spotty-badgers-wash",
"stale-eagles-reply",
"stale-stingrays-explode",
"strange-dodos-film",
"strong-falcons-tickle",
"stupid-drinks-trade",
"stupid-eagles-shave",
"swift-steaks-fetch",
"tame-trainers-visit",
"tasty-avocados-hope",
"tasty-doors-switch",
"ten-seals-wait",
"tender-pears-work",
"thirty-coins-sneeze",
"tiny-garlics-cheer",
"twelve-clouds-design",
"twelve-days-walk",
"twenty-bags-sin",
"twenty-carrots-smile",
"two-dingos-dream",
"two-terms-play",
"unlucky-experts-breathe",
"violet-apes-beam",
"violet-beers-cross",
"warm-drinks-argue",
"wet-olives-wave",
"wet-timers-chew",
"wicked-rings-flash",
"wild-jobs-greet",
"wild-queens-grab",
"yellow-numbers-own",
"yellow-rings-invent"
"yellow-rings-invent",
"young-toes-knock"
]
}
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-kubernetes-react': patch
---
Handle mixed decimals and bigint when calculating k8s resource usage
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/dev-utils': patch
---
Moving development `dependencies` to `devDependencies`
+8
View File
@@ -0,0 +1,8 @@
---
'@backstage/backend-common': patch
'@backstage/plugin-kubernetes-backend': patch
'@backstage/plugin-kubernetes-common': patch
'@backstage/plugin-kubernetes': patch
---
Updated dependency `@kubernetes/client-node` to `0.19.0`.
+104
View File
@@ -0,0 +1,104 @@
---
'@backstage/app-defaults': patch
'@backstage/core-app-api': patch
'@backstage/core-components': patch
'@backstage/core-plugin-api': patch
'@backstage/dev-utils': patch
'@backstage/frontend-app-api': patch
'@backstage/frontend-plugin-api': patch
'@backstage/integration-react': patch
'@backstage/test-utils': patch
'@backstage/version-bridge': patch
'@backstage/plugin-adr': patch
'@backstage/plugin-airbrake': patch
'@backstage/plugin-allure': patch
'@backstage/plugin-analytics-module-ga': patch
'@backstage/plugin-analytics-module-ga4': patch
'@backstage/plugin-analytics-module-newrelic-browser': patch
'@backstage/plugin-apache-airflow': patch
'@backstage/plugin-api-docs-module-protoc-gen-doc': patch
'@backstage/plugin-api-docs': patch
'@backstage/plugin-apollo-explorer': patch
'@backstage/plugin-azure-devops': patch
'@backstage/plugin-azure-sites': patch
'@backstage/plugin-badges': patch
'@backstage/plugin-bazaar': patch
'@backstage/plugin-bitrise': patch
'@backstage/plugin-catalog-graph': patch
'@backstage/plugin-catalog-import': patch
'@backstage/plugin-catalog-react': patch
'@backstage/plugin-catalog-unprocessed-entities': patch
'@backstage/plugin-catalog': patch
'@backstage/plugin-circleci': patch
'@backstage/plugin-cloudbuild': patch
'@backstage/plugin-code-climate': patch
'@backstage/plugin-code-coverage': patch
'@backstage/plugin-codescene': patch
'@backstage/plugin-config-schema': patch
'@backstage/plugin-cost-insights': patch
'@backstage/plugin-devtools': patch
'@backstage/plugin-dynatrace': patch
'@backstage/plugin-entity-feedback': patch
'@backstage/plugin-entity-validation': patch
'@backstage/plugin-explore-react': patch
'@backstage/plugin-explore': patch
'@backstage/plugin-firehydrant': patch
'@backstage/plugin-fossa': patch
'@backstage/plugin-gcalendar': patch
'@backstage/plugin-gcp-projects': patch
'@backstage/plugin-git-release-manager': patch
'@backstage/plugin-github-actions': patch
'@backstage/plugin-github-deployments': patch
'@backstage/plugin-github-issues': patch
'@backstage/plugin-github-pull-requests-board': patch
'@backstage/plugin-gitops-profiles': patch
'@backstage/plugin-gocd': patch
'@backstage/plugin-graphiql': patch
'@backstage/plugin-graphql-voyager': patch
'@backstage/plugin-home-react': patch
'@backstage/plugin-home': patch
'@backstage/plugin-ilert': patch
'@backstage/plugin-jenkins': patch
'@backstage/plugin-kafka': patch
'@backstage/plugin-kubernetes-cluster': patch
'@backstage/plugin-kubernetes-react': patch
'@backstage/plugin-kubernetes': patch
'@backstage/plugin-lighthouse': patch
'@backstage/plugin-linguist': patch
'@backstage/plugin-microsoft-calendar': patch
'@backstage/plugin-newrelic-dashboard': patch
'@backstage/plugin-newrelic': patch
'@backstage/plugin-nomad': patch
'@backstage/plugin-octopus-deploy': patch
'@backstage/plugin-opencost': patch
'@backstage/plugin-org-react': patch
'@backstage/plugin-org': patch
'@backstage/plugin-pagerduty': patch
'@backstage/plugin-periskop': patch
'@backstage/plugin-permission-react': patch
'@backstage/plugin-playlist': patch
'@backstage/plugin-puppetdb': patch
'@backstage/plugin-rollbar': patch
'@backstage/plugin-scaffolder-react': patch
'@backstage/plugin-scaffolder': patch
'@backstage/plugin-search-react': patch
'@backstage/plugin-search': patch
'@backstage/plugin-sentry': patch
'@backstage/plugin-shortcuts': patch
'@backstage/plugin-sonarqube': patch
'@backstage/plugin-splunk-on-call': patch
'@backstage/plugin-stack-overflow': patch
'@backstage/plugin-stackstorm': patch
'@backstage/plugin-tech-insights': patch
'@backstage/plugin-tech-radar': patch
'@backstage/plugin-techdocs-addons-test-utils': patch
'@backstage/plugin-techdocs-module-addons-contrib': patch
'@backstage/plugin-techdocs-react': patch
'@backstage/plugin-techdocs': patch
'@backstage/plugin-todo': patch
'@backstage/plugin-user-settings': patch
'@backstage/plugin-vault': patch
'@backstage/plugin-xcmetrics': patch
---
Updated dependency `@testing-library/jest-dom` to `^6.0.0`.
+86
View File
@@ -0,0 +1,86 @@
---
'@backstage/core-app-api': patch
'@backstage/core-components': patch
'@backstage/core-plugin-api': patch
'@backstage/dev-utils': patch
'@backstage/integration-react': patch
'@backstage/plugin-adr': patch
'@backstage/plugin-airbrake': patch
'@backstage/plugin-allure': patch
'@backstage/plugin-analytics-module-ga': patch
'@backstage/plugin-analytics-module-ga4': patch
'@backstage/plugin-apache-airflow': patch
'@backstage/plugin-api-docs': patch
'@backstage/plugin-apollo-explorer': patch
'@backstage/plugin-azure-devops': patch
'@backstage/plugin-azure-sites': patch
'@backstage/plugin-bitrise': patch
'@backstage/plugin-catalog-graph': patch
'@backstage/plugin-catalog-import': patch
'@backstage/plugin-catalog-react': patch
'@backstage/plugin-catalog': patch
'@backstage/plugin-circleci': patch
'@backstage/plugin-cloudbuild': patch
'@backstage/plugin-code-climate': patch
'@backstage/plugin-code-coverage': patch
'@backstage/plugin-codescene': patch
'@backstage/plugin-config-schema': patch
'@backstage/plugin-cost-insights': patch
'@backstage/plugin-dynatrace': patch
'@backstage/plugin-entity-feedback': patch
'@backstage/plugin-entity-validation': patch
'@backstage/plugin-explore-react': patch
'@backstage/plugin-explore': patch
'@backstage/plugin-firehydrant': patch
'@backstage/plugin-fossa': patch
'@backstage/plugin-gcalendar': patch
'@backstage/plugin-gcp-projects': patch
'@backstage/plugin-git-release-manager': patch
'@backstage/plugin-github-actions': patch
'@backstage/plugin-github-deployments': patch
'@backstage/plugin-github-issues': patch
'@backstage/plugin-github-pull-requests-board': patch
'@backstage/plugin-gitops-profiles': patch
'@backstage/plugin-gocd': patch
'@backstage/plugin-graphiql': patch
'@backstage/plugin-graphql-voyager': patch
'@backstage/plugin-home-react': patch
'@backstage/plugin-home': patch
'@backstage/plugin-ilert': patch
'@backstage/plugin-jenkins': patch
'@backstage/plugin-kafka': patch
'@backstage/plugin-kubernetes-cluster': patch
'@backstage/plugin-kubernetes': patch
'@backstage/plugin-lighthouse': patch
'@backstage/plugin-linguist': patch
'@backstage/plugin-microsoft-calendar': patch
'@backstage/plugin-newrelic': patch
'@backstage/plugin-octopus-deploy': patch
'@backstage/plugin-org-react': patch
'@backstage/plugin-org': patch
'@backstage/plugin-pagerduty': patch
'@backstage/plugin-periskop': patch
'@backstage/plugin-playlist': patch
'@backstage/plugin-rollbar': patch
'@backstage/plugin-scaffolder-react': patch
'@backstage/plugin-scaffolder': patch
'@backstage/plugin-search-react': patch
'@backstage/plugin-search': patch
'@backstage/plugin-sentry': patch
'@backstage/plugin-shortcuts': patch
'@backstage/plugin-sonarqube': patch
'@backstage/plugin-splunk-on-call': patch
'@backstage/plugin-stack-overflow': patch
'@backstage/plugin-stackstorm': patch
'@backstage/plugin-tech-insights': patch
'@backstage/plugin-tech-radar': patch
'@backstage/plugin-techdocs-addons-test-utils': patch
'@backstage/plugin-techdocs-module-addons-contrib': patch
'@backstage/plugin-techdocs': patch
'@backstage/plugin-todo': patch
'@backstage/plugin-user-settings': patch
'@backstage/plugin-vault': patch
'@backstage/plugin-xcmetrics': patch
---
Updated dependency `@testing-library/dom` to `^9.0.0`.
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-kubernetes': patch
---
Updated dependency `xterm-addon-attach` to `^0.9.0`.
Updated dependency `xterm-addon-fit` to `^0.8.0`.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Updated dependency `@typescript-eslint/eslint-plugin` to `6.7.5`.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-app-api': patch
---
Fixed a bug in `TranslationApi` implementation where in some cases it wouldn't notify subscribers of language changes.
+8
View File
@@ -0,0 +1,8 @@
---
'@backstage/plugin-kubernetes-backend': minor
---
**BREAKING** Allow passing undefined `labelSelector` to `KubernetesFetcher`
`KubernetesFetch` no longer auto-adds `labelSelector` when empty string was passed.
This is only applicable if you have custom ObjectProvider implementation, as build-in `KubernetesFanOutHandler` already does this
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-plugin-api': patch
---
Added `createExtensionOverrides` which can be used to install a collection of extensions in an app that will replace any existing ones.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-app-api': minor
---
The hidden `'root'` extension has been removed and has instead been made an input of the `'core'` extension. The checks for rejecting configuration of the `'root'` extension to rejects configuration of the `'core'` extension instead.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-common': patch
---
Adds the optional flag for useRedisSets for the Redis cache to the config.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-newrelic-dashboard': patch
---
Fix the styles for NewRelicDashboard, add more responsiveness
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-app-api': minor
---
Added support for installing `ExtensionOverrides` via `createApp` options. As part of this change the `plugins` option has been renamed to `features`, and the `pluginLoader` has been renamed to `featureLoader`.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/create-app': patch
---
Bump dev dependencies `lerna@7.3.0` on the template
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-search-backend': patch
---
Set the default length limit to search query to 100. To override it, define `search.maxTermLength` in the config file.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-newrelic-dashboard': minor
---
Add storybook for newrelic-dashboard plugin.
+2 -1
View File
@@ -25,6 +25,7 @@ backend's
backported
backporting
BEPs
bigint
Bigtable
Billett
bitbucket
@@ -453,4 +454,4 @@ zsh
Pulumi
Lightsail
PR
rebasing
rebasing
+1 -1
View File
@@ -61,6 +61,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: 'Upload to code-scanning'
uses: github/codeql-action/upload-sarif@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
uses: github/codeql-action/upload-sarif@fdcae64e1484d349b3366718cdfef3d404390e85 # v2.22.1
with:
sarif_file: results.sarif
+4 -1
View File
@@ -159,4 +159,7 @@ e2e-test-report/
# VS Code backing up svg files
*svg.bkp
*svg.dtmp
*svg.dtmp
# Scripts
plugins-report.csv
@@ -44,6 +44,20 @@ When multiple `catalog-info.yaml` files with the same `metadata.name` property
are discovered, one will be processed and all others will be skipped. This
action is logged for further investigation.
### Local File (`type: file`) Configurations
In addition to url locations, you can use the `file` location type to bring in content from the local file system. You should only use this for local development, test setups and example data, not for production data.
You are also not able to use placeholders in them like `$text`. You can however reference other files relative to the current file. See the full [catalog example data set here](https://github.com/backstage/backstage/tree/master/packages/catalog-model/examples) for an extensive example.
Here is an example pulling in the `all.yaml` file from the examples folder. Note the use of `../../` to go up two levels from the current execution path of the backend. This is typically `packages/backend/`.
```yaml
catalog:
locations:
- type: file
target: ../../examples/all.yaml
```
### Integration Processors
Integrations may simply provide a mechanism to handle `url` location type for an
@@ -110,10 +110,11 @@ parameters:
arrayObjects:
title: Array with custom objects
type: array
minItems: 0
ui:options:
addable: false
orderable: false
removable: false
addable: true
orderable: true
removable: true
items:
type: object
properties:
+33
View File
@@ -525,6 +525,39 @@ techdocs:
This way, all iframes where the host in the src attribute is in the
`sanitizer.allowedIframeHosts` list will be displayed.
## How to render PlantUML diagram in TechDocs
PlantUML allows you to create diagrams from plain text language. Each diagram description begins with the keyword - (@startXYZ and @endXYZ, depending on the kind of diagram). For UML Diagrams, Keywords @startuml & @enduml should be used. Further details for all types of diagrams can be found at [PlantUML Language Reference Guide](https://plantuml.com/guide).
### UML Diagram Details:-
#### Embedded PlantUML Diagram Example
Here, the markdown file itself contains the diagram description.
````md
```plantuml
@startuml
title Login Sequence
ComponentA->ComponentB: Login Request
note right of ComponentB: ComponentB logs message
ComponentB->ComponentA: Login Response
@enduml
```
````
#### Referenced PlantUML Diagram Example
Here, the markdown file refers to another file (_.puml or _.pu) which contains the diagram description.
````md
```plantuml
!include umldiagram.puml
```
````
Note: To refer external diagram files, we need to include the diagrams directory in the path. Please refer [`Dockerfile`](https://github.com/backstage/techdocs-container/blob/main/Dockerfile) for details.
## How to add Mermaid support in TechDocs
To add `Mermaid` support in TechDocs, you can use [`kroki`](https://kroki.io)
+3
View File
@@ -323,8 +323,11 @@ backend:
cache:
store: redis
connection: redis://user:pass@cache.example.com:6379
useRedisSets: true
```
The useRedisSets flag is explained [here](https://github.com/jaredwray/keyv/tree/main/packages/redis#useredissets).
Contributions supporting other cache stores are welcome!
## Containerization
+1 -1
View File
@@ -4,7 +4,7 @@
### 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.
- 7077dbf131: **BREAKING** 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`, which is recommended if you haven't migrated to the new backend system.
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.
File diff suppressed because it is too large Load Diff
+5 -3
View File
@@ -1,13 +1,15 @@
---
title: Dynatrace
author: TELUS
authorUrl: https://github.com/telus
author: Dynatrace
authorUrl: https://github.com/dynatrace
category: Monitoring
description: View monitoring info from Dynatrace for services in your software catalog.
documentation: https://github.com/backstage/backstage/tree/master/plugins/dynatrace
iconUrl: /img/dynatrace.svg
npmPackageName: '@backstage/plugin-dynatrace'
tags:
- dynatrace
- monitoring
- observability
- alerting
- problems
addedDate: '2022-06-23'
+3 -3
View File
@@ -10810,15 +10810,15 @@ __metadata:
linkType: hard
"sass@npm:^1.57.1":
version: 1.69.0
resolution: "sass@npm:1.69.0"
version: 1.69.3
resolution: "sass@npm:1.69.3"
dependencies:
chokidar: ">=3.0.0 <4.0.0"
immutable: ^4.0.0
source-map-js: ">=0.6.2 <2.0.0"
bin:
sass: sass.js
checksum: eabea31ea3b1dd529c7eff345c8b6468afe6ab8011bd4f95caa2cffb8fb115cc055ea21de425be6197f7ed22516f5652eccb98d315d592ea152ada553f964b8a
checksum: b89a3370c7ede462b344e2136bf1407bf375855c1ec54f73b6257b18fe59dae5377eb9f7b25f21ae4a25d8f0bc41a165d8d7e5f693d8285b1aa51ac6056c4d19
languageName: node
linkType: hard
+2 -1
View File
@@ -13,6 +13,7 @@
"build:api-reports": "yarn build:api-reports:only --tsc",
"build:api-reports:only": "backstage-repo-tools api-reports --allow-warnings 'packages/core-components,plugins/+(catalog|catalog-import|git-release-manager|jenkins|kubernetes)' -o ae-wrong-input-file-type --validate-release-tags",
"build:api-docs": "LANG=en_EN yarn build:api-reports --docs",
"build:plugins-report": "node ./scripts/build-plugins-report",
"tsc": "tsc",
"tsc:full": "backstage-cli repo clean && tsc --skipLibCheck false --incremental false",
"clean": "backstage-cli repo clean",
@@ -51,7 +52,7 @@
"jest-haste-map@^29.4.3": "patch:jest-haste-map@npm%3A29.4.3#./.yarn/patches/jest-haste-map-npm-29.4.3-19b03fcef3.patch",
"mock-fs@^5.2.0": "patch:mock-fs@npm%3A5.2.0#./.yarn/patches/mock-fs-npm-5.2.0-5103a7b507.patch"
},
"version": "1.19.0-next.1",
"version": "1.19.0-next.2",
"dependencies": {
"@backstage/errors": "workspace:^",
"@manypkg/get-packages": "^1.1.3"
+11
View File
@@ -1,5 +1,16 @@
# @backstage/app-defaults
## 1.4.4-next.2
### Patch Changes
- Updated dependencies
- @backstage/core-app-api@1.11.0-next.2
- @backstage/core-components@0.13.6-next.2
- @backstage/core-plugin-api@1.7.0-next.1
- @backstage/theme@0.4.3-next.0
- @backstage/plugin-permission-react@0.4.16-next.1
## 1.4.4-next.1
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/app-defaults",
"description": "Provides the default wiring of a Backstage App",
"version": "1.4.4-next.1",
"version": "1.4.4-next.2",
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
@@ -49,7 +49,7 @@
"devDependencies": {
"@backstage/cli": "workspace:^",
"@backstage/test-utils": "workspace:^",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^12.1.3",
"@types/react": "^16.13.1 || ^17.0.0"
},
@@ -1,5 +1,13 @@
# app-next-example-plugin
## 0.0.2-next.2
### Patch Changes
- Updated dependencies
- @backstage/frontend-plugin-api@0.2.0-next.2
- @backstage/core-components@0.13.6-next.2
## 0.0.2-next.1
### Patch Changes
@@ -3,11 +3,13 @@
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { AnyExternalRoutes } from '@backstage/core-plugin-api';
import { AnyRoutes } from '@backstage/core-plugin-api';
import { BackstagePlugin } from '@backstage/frontend-plugin-api';
import { default as React_2 } from 'react';
// @public (undocumented)
const examplePlugin: BackstagePlugin;
const examplePlugin: BackstagePlugin<AnyRoutes, AnyExternalRoutes>;
export default examplePlugin;
// @public (undocumented)
@@ -1,7 +1,7 @@
{
"name": "app-next-example-plugin",
"description": "Backstage internal example plugin",
"version": "0.0.2-next.1",
"version": "0.0.2-next.2",
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
+77
View File
@@ -1,5 +1,82 @@
# example-app-next
## 0.0.2-next.2
### Patch Changes
- Updated dependencies
- @backstage/cli@0.23.0-next.2
- @backstage/frontend-plugin-api@0.2.0-next.2
- @backstage/frontend-app-api@0.2.0-next.2
- @backstage/core-app-api@1.11.0-next.2
- @backstage/plugin-techdocs@1.7.1-next.2
- @backstage/plugin-newrelic@0.3.41-next.2
- @backstage/plugin-scaffolder@1.15.1-next.2
- @backstage/integration-react@1.1.20-next.2
- @backstage/core-components@0.13.6-next.2
- @backstage/core-plugin-api@1.7.0-next.1
- @backstage/catalog-model@1.4.3-next.0
- @backstage/plugin-catalog-react@1.8.5-next.2
- @backstage/plugin-tech-radar@0.6.9-next.2
- @backstage/plugin-catalog@1.14.0-next.2
- @backstage/plugin-adr@0.6.8-next.2
- @backstage/plugin-graphiql@0.2.55-next.2
- @backstage/plugin-search-react@1.7.1-next.2
- @backstage/plugin-newrelic-dashboard@0.3.0-next.2
- @backstage/plugin-kubernetes@0.11.0-next.2
- @backstage/theme@0.4.3-next.0
- @backstage/plugin-jenkins@0.8.7-next.2
- @backstage/plugin-tech-insights@0.3.17-next.2
- @backstage/plugin-playlist@0.1.17-next.2
- @backstage/app-defaults@1.4.4-next.2
- app-next-example-plugin@0.0.2-next.2
- @backstage/config@1.1.1-next.0
- @backstage/plugin-airbrake@0.3.25-next.2
- @backstage/plugin-apache-airflow@0.2.16-next.2
- @backstage/plugin-api-docs@0.9.12-next.2
- @backstage/plugin-azure-devops@0.3.7-next.2
- @backstage/plugin-azure-sites@0.1.14-next.2
- @backstage/plugin-badges@0.2.49-next.2
- @backstage/plugin-catalog-common@1.0.17-next.0
- @backstage/plugin-catalog-graph@0.2.37-next.2
- @backstage/plugin-catalog-import@0.10.1-next.2
- @backstage/plugin-catalog-unprocessed-entities@0.1.4-next.2
- @backstage/plugin-circleci@0.3.25-next.2
- @backstage/plugin-cloudbuild@0.3.25-next.2
- @backstage/plugin-code-coverage@0.2.18-next.2
- @backstage/plugin-cost-insights@0.12.14-next.2
- @backstage/plugin-devtools@0.1.5-next.2
- @backstage/plugin-dynatrace@7.0.5-next.2
- @backstage/plugin-entity-feedback@0.2.8-next.2
- @backstage/plugin-explore@0.4.11-next.2
- @backstage/plugin-gcalendar@0.3.19-next.2
- @backstage/plugin-gcp-projects@0.3.42-next.2
- @backstage/plugin-github-actions@0.6.6-next.2
- @backstage/plugin-gocd@0.1.31-next.2
- @backstage/plugin-home@0.5.9-next.2
- @backstage/plugin-kafka@0.3.25-next.2
- @backstage/plugin-lighthouse@0.4.10-next.2
- @backstage/plugin-linguist@0.1.10-next.2
- @backstage/plugin-linguist-common@0.1.2
- @backstage/plugin-microsoft-calendar@0.1.8-next.2
- @backstage/plugin-octopus-deploy@0.2.7-next.2
- @backstage/plugin-org@0.6.15-next.2
- @backstage/plugin-pagerduty@0.6.6-next.2
- @backstage/plugin-permission-react@0.4.16-next.1
- @backstage/plugin-puppetdb@0.1.8-next.2
- @backstage/plugin-rollbar@0.4.25-next.2
- @backstage/plugin-scaffolder-react@1.5.6-next.2
- @backstage/plugin-search@1.4.1-next.2
- @backstage/plugin-search-common@1.2.7-next.0
- @backstage/plugin-sentry@0.5.10-next.2
- @backstage/plugin-shortcuts@0.3.15-next.2
- @backstage/plugin-stack-overflow@0.1.21-next.2
- @backstage/plugin-stackstorm@0.1.7-next.2
- @backstage/plugin-techdocs-module-addons-contrib@1.1.1-next.2
- @backstage/plugin-techdocs-react@1.1.12-next.2
- @backstage/plugin-todo@0.2.28-next.2
- @backstage/plugin-user-settings@0.7.11-next.2
## 0.0.2-next.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "example-app-next",
"version": "0.0.2-next.1",
"version": "0.0.2-next.2",
"private": true,
"backstage": {
"role": "frontend"
@@ -98,8 +98,8 @@
},
"devDependencies": {
"@backstage/test-utils": "workspace:^",
"@testing-library/dom": "^8.0.0",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^14.0.0",
"@types/jquery": "^3.3.34",
+28 -9
View File
@@ -14,10 +14,18 @@
* limitations under the License.
*/
import React from 'react';
import { createApp } from '@backstage/frontend-app-api';
import { pagesPlugin } from './examples/pagesPlugin';
import graphiqlPlugin from '@backstage/plugin-graphiql/alpha';
import techRadarPlugin from '@backstage/plugin-tech-radar/alpha';
import userSettingsPlugin from '@backstage/plugin-user-settings/alpha';
import {
createExtensionOverrides,
createPageExtension,
} from '@backstage/frontend-plugin-api';
import { entityRouteRef } from '@backstage/plugin-catalog-react';
import techdocsPlugin from '@backstage/plugin-techdocs/alpha';
/*
@@ -48,16 +56,27 @@ TODO:
/* app.tsx */
const entityPageExtension = createPageExtension({
id: 'catalog:entity',
defaultPath: '/catalog/:namespace/:kind/:name',
routeRef: entityRouteRef,
loader: async () => <div>Just a temporary mocked entity page</div>,
});
const app = createApp({
plugins: [graphiqlPlugin, pagesPlugin, techRadarPlugin],
// bindRoutes({ bind }) {
// bind(catalogPlugin.externalRoutes, {
// createComponent: scaffolderPlugin.routes.root,
// });
// bind(scaffolderPlugin.externalRoutes, {
// registerComponent: catalogImportPlugin.routes.importPage,
// });
// },
features: [
graphiqlPlugin,
pagesPlugin,
techRadarPlugin,
techdocsPlugin,
userSettingsPlugin,
createExtensionOverrides({
extensions: [entityPageExtension],
}),
],
bindRoutes({ bind }) {
bind(pagesPlugin.externalRoutes, { pageX: pagesPlugin.routes.pageX });
},
});
// const legacyApp = createLegacyApp({ plugins: [legacyGraphiqlPlugin] });
+40 -2
View File
@@ -20,11 +20,17 @@ import {
createPageExtension,
createPlugin,
} from '@backstage/frontend-plugin-api';
import { useRouteRef, createRouteRef } from '@backstage/core-plugin-api';
import {
useRouteRef,
createRouteRef,
createExternalRouteRef,
} from '@backstage/core-plugin-api';
import { Route, Routes } from 'react-router-dom';
const indexRouteRef = createRouteRef({ id: 'index' });
const page1RouteRef = createRouteRef({ id: 'page1' });
export const externalPageXRouteRef = createExternalRouteRef({ id: 'pageX' });
export const pageXRouteRef = createRouteRef({ id: 'pageX' });
// const page2RouteRef = createSubRouteRef({
// id: 'page2',
// parent: page1RouteRef,
@@ -50,6 +56,9 @@ const IndexPage = createPageExtension({
<div>
<Link to="/search">Search</Link>
</div>
<div>
<Link to="/settings">Settings</Link>
</div>
</div>
);
};
@@ -64,6 +73,7 @@ const Page1 = createPageExtension({
loader: async () => {
const Component = () => {
const indexLink = useRouteRef(indexRouteRef);
const xLink = useRouteRef(externalPageXRouteRef);
// const page2Link = useRouteRef(page2RouteRef);
return (
@@ -72,6 +82,7 @@ const Page1 = createPageExtension({
<Link to={indexLink()}>Go back</Link>
<Link to="./page2">Page 2</Link>
{/* <Link to={page2Link()}>Page 2</Link> */}
<Link to={xLink()}>Page X</Link>
<div>
Sub-page content:
@@ -89,6 +100,26 @@ const Page1 = createPageExtension({
},
});
const ExternalPage = createPageExtension({
id: 'pageX',
defaultPath: '/pageX',
routeRef: pageXRouteRef,
loader: async () => {
const Component = () => {
const indexLink = useRouteRef(indexRouteRef);
// const pageXLink = useRouteRef(pageXRouteRef);
return (
<div>
<h1>This is page X</h1>
<Link to={indexLink()}>Go back</Link>
</div>
);
};
return <Component />;
},
});
export const pagesPlugin = createPlugin({
id: 'pages',
// routes: {
@@ -98,5 +129,12 @@ export const pagesPlugin = createPlugin({
// // OR
// // 'page1'
// },
extensions: [IndexPage, Page1],
routes: {
page1: page1RouteRef,
pageX: pageXRouteRef,
},
externalRoutes: {
pageX: externalPageXRouteRef,
},
extensions: [IndexPage, Page1, ExternalPage],
});
+77
View File
@@ -1,5 +1,82 @@
# example-app
## 0.2.88-next.2
### Patch Changes
- Updated dependencies
- @backstage/cli@0.23.0-next.2
- @backstage/frontend-app-api@0.2.0-next.2
- @backstage/core-app-api@1.11.0-next.2
- @backstage/plugin-techdocs@1.7.1-next.2
- @backstage/plugin-newrelic@0.3.41-next.2
- @backstage/plugin-scaffolder@1.15.1-next.2
- @backstage/integration-react@1.1.20-next.2
- @backstage/core-components@0.13.6-next.2
- @backstage/core-plugin-api@1.7.0-next.1
- @backstage/catalog-model@1.4.3-next.0
- @backstage/plugin-catalog-react@1.8.5-next.2
- @backstage/plugin-tech-radar@0.6.9-next.2
- @backstage/plugin-catalog@1.14.0-next.2
- @backstage/plugin-adr@0.6.8-next.2
- @backstage/plugin-graphiql@0.2.55-next.2
- @backstage/plugin-search-react@1.7.1-next.2
- @backstage/plugin-newrelic-dashboard@0.3.0-next.2
- @backstage/plugin-kubernetes-cluster@0.0.1-next.0
- @backstage/plugin-kubernetes@0.11.0-next.2
- @backstage/theme@0.4.3-next.0
- @backstage/plugin-jenkins@0.8.7-next.2
- @backstage/plugin-tech-insights@0.3.17-next.2
- @backstage/plugin-playlist@0.1.17-next.2
- @backstage/app-defaults@1.4.4-next.2
- @backstage/config@1.1.1-next.0
- @backstage/plugin-airbrake@0.3.25-next.2
- @backstage/plugin-apache-airflow@0.2.16-next.2
- @backstage/plugin-api-docs@0.9.12-next.2
- @backstage/plugin-azure-devops@0.3.7-next.2
- @backstage/plugin-azure-sites@0.1.14-next.2
- @backstage/plugin-badges@0.2.49-next.2
- @backstage/plugin-catalog-common@1.0.17-next.0
- @backstage/plugin-catalog-graph@0.2.37-next.2
- @backstage/plugin-catalog-import@0.10.1-next.2
- @backstage/plugin-catalog-unprocessed-entities@0.1.4-next.2
- @backstage/plugin-circleci@0.3.25-next.2
- @backstage/plugin-cloudbuild@0.3.25-next.2
- @backstage/plugin-code-coverage@0.2.18-next.2
- @backstage/plugin-cost-insights@0.12.14-next.2
- @backstage/plugin-devtools@0.1.5-next.2
- @backstage/plugin-dynatrace@7.0.5-next.2
- @backstage/plugin-entity-feedback@0.2.8-next.2
- @backstage/plugin-explore@0.4.11-next.2
- @backstage/plugin-gcalendar@0.3.19-next.2
- @backstage/plugin-gcp-projects@0.3.42-next.2
- @backstage/plugin-github-actions@0.6.6-next.2
- @backstage/plugin-gocd@0.1.31-next.2
- @backstage/plugin-home@0.5.9-next.2
- @backstage/plugin-kafka@0.3.25-next.2
- @backstage/plugin-lighthouse@0.4.10-next.2
- @backstage/plugin-linguist@0.1.10-next.2
- @backstage/plugin-linguist-common@0.1.2
- @backstage/plugin-microsoft-calendar@0.1.8-next.2
- @backstage/plugin-nomad@0.1.6-next.2
- @backstage/plugin-octopus-deploy@0.2.7-next.2
- @backstage/plugin-org@0.6.15-next.2
- @backstage/plugin-pagerduty@0.6.6-next.2
- @backstage/plugin-permission-react@0.4.16-next.1
- @backstage/plugin-puppetdb@0.1.8-next.2
- @backstage/plugin-rollbar@0.4.25-next.2
- @backstage/plugin-scaffolder-react@1.5.6-next.2
- @backstage/plugin-search@1.4.1-next.2
- @backstage/plugin-search-common@1.2.7-next.0
- @backstage/plugin-sentry@0.5.10-next.2
- @backstage/plugin-shortcuts@0.3.15-next.2
- @backstage/plugin-stack-overflow@0.1.21-next.2
- @backstage/plugin-stackstorm@0.1.7-next.2
- @backstage/plugin-techdocs-module-addons-contrib@1.1.1-next.2
- @backstage/plugin-techdocs-react@1.1.12-next.2
- @backstage/plugin-todo@0.2.28-next.2
- @backstage/plugin-user-settings@0.7.11-next.2
## 0.2.88-next.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "example-app",
"version": "0.2.88-next.1",
"version": "0.2.88-next.2",
"private": true,
"backstage": {
"role": "frontend"
@@ -104,8 +104,8 @@
"devDependencies": {
"@backstage/test-utils": "workspace:^",
"@playwright/test": "^1.32.3",
"@testing-library/dom": "^8.0.0",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^14.0.0",
"@types/jquery": "^3.3.34",
+19
View File
@@ -1,5 +1,24 @@
# @backstage/backend-app-api
## 0.5.6-next.2
### Patch Changes
- 74491c9602: Moved `HostDiscovery` from `@backstage/backend-common`.
- a4617c422a: Added `watch` option to configuration loaders that can be used to disable file watching by setting it to `false`.
- Updated dependencies
- @backstage/backend-common@0.19.8-next.2
- @backstage/plugin-auth-node@0.4.0-next.2
- @backstage/config-loader@1.5.1-next.1
- @backstage/errors@1.2.3-next.0
- @backstage/backend-tasks@0.5.11-next.2
- @backstage/plugin-permission-node@0.7.17-next.2
- @backstage/backend-plugin-api@0.6.6-next.2
- @backstage/cli-common@0.1.13-next.0
- @backstage/cli-node@0.1.5-next.1
- @backstage/config@1.1.1-next.0
- @backstage/types@1.1.1
## 0.5.5-next.1
### 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.5-next.1",
"version": "0.5.6-next.2",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+21
View File
@@ -1,5 +1,26 @@
# @backstage/backend-common
## 0.19.8-next.2
### Patch Changes
- 74491c9602: The `HostDiscovery` export has been deprecated, import it from `@backstage/backend-app-api` instead.
- b95d66d4ea: Properly close write stream when writing temporary archive for processing zip-based `.readTree()` responses.
- 0b55f773a7: Removed some unused dependencies
- 4c39e38f1e: Added `/testUtils` entry point, with a utility for mocking resolve package paths as returned by `resolvePackagePath`.
- a250ad775f: Removed `mock-fs` dev dependency.
- Updated dependencies
- @backstage/config-loader@1.5.1-next.1
- @backstage/integration@1.7.1-next.1
- @backstage/errors@1.2.3-next.0
- @backstage/backend-app-api@0.5.6-next.2
- @backstage/backend-dev-utils@0.1.2-next.0
- @backstage/backend-plugin-api@0.6.6-next.2
- @backstage/cli-common@0.1.13-next.0
- @backstage/config@1.1.1-next.0
- @backstage/integration-aws-node@0.1.7-next.0
- @backstage/types@1.1.1
## 0.19.7-next.1
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-common",
"description": "Common functionality library for Backstage backends",
"version": "0.19.7-next.1",
"version": "0.19.8-next.2",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
@@ -67,7 +67,7 @@
"@google-cloud/storage": "^6.0.0",
"@keyv/memcache": "^1.3.5",
"@keyv/redis": "^2.5.3",
"@kubernetes/client-node": "0.18.1",
"@kubernetes/client-node": "0.19.0",
"@manypkg/get-packages": "^1.1.3",
"@octokit/rest": "^19.0.3",
"@types/cors": "^2.8.6",
+56 -22
View File
@@ -48,8 +48,10 @@ describe('CacheManager', () => {
describe('CacheManager.fromConfig', () => {
it('accesses the backend.cache key', () => {
const getOptionalString = jest.fn();
const getOptionalBoolean = jest.fn();
const config = defaultConfig();
config.getOptionalString = getOptionalString;
config.getOptionalBoolean = getOptionalBoolean;
CacheManager.fromConfig(config);
@@ -57,6 +59,9 @@ describe('CacheManager', () => {
expect(getOptionalString.mock.calls[1][0]).toEqual(
'backend.cache.connection',
);
expect(getOptionalBoolean.mock.calls[0][0]).toEqual(
'backend.cache.useRedisSets',
);
});
it('does not require the backend.cache key', () => {
@@ -195,32 +200,61 @@ describe('CacheManager', () => {
const mockMemcacheCalls = memcache.mock.calls.splice(-1);
expect(mockMemcacheCalls[0][0]).toEqual(expectedHost);
});
});
it('returns a Redis client when configured', () => {
const redisConnection = 'redis://127.0.0.1:6379';
const manager = CacheManager.fromConfig(
new ConfigReader({
backend: {
cache: {
store: 'redis',
connection: redisConnection,
it('returns a Redis client when configured', () => {
const redisConnection = 'redis://127.0.0.1:6379';
const manager = CacheManager.fromConfig(
new ConfigReader({
backend: {
cache: {
store: 'redis',
connection: redisConnection,
},
},
},
}),
);
const expectedTtl = 3600;
manager.forPlugin('test').getClient({ defaultTtl: expectedTtl });
}),
);
const expectedTtl = 3600;
manager.forPlugin('test').getClient({ defaultTtl: expectedTtl });
const cache = Keyv as unknown as jest.Mock;
const mockCacheCalls = cache.mock.calls.splice(-1);
expect(mockCacheCalls[0][0]).toMatchObject({
ttl: expectedTtl,
const cache = Keyv as unknown as jest.Mock;
const mockCacheCalls = cache.mock.calls.splice(-1);
expect(mockCacheCalls[0][0]).toMatchObject({
ttl: expectedTtl,
});
expect(mockCacheCalls[0][0].store).toBeInstanceOf(KeyvRedis);
const redis = KeyvRedis as unknown as jest.Mock;
const mockRedisCalls = redis.mock.calls.splice(-1);
expect(mockRedisCalls[0][0]).toEqual(redisConnection);
});
it('returns a Redis client when configured with useRedisSets flag', () => {
const redisConnection = 'redis://127.0.0.1:6379';
const useRedisSets = false;
const manager = CacheManager.fromConfig(
new ConfigReader({
backend: {
cache: {
store: 'redis',
connection: redisConnection,
useRedisSets: useRedisSets,
},
},
}),
);
const expectedTtl = 3600;
manager.forPlugin('test').getClient({ defaultTtl: expectedTtl });
const cache = Keyv as unknown as jest.Mock;
const mockCacheCalls = cache.mock.calls.splice(-1);
expect(mockCacheCalls[0][0]).toMatchObject({
ttl: expectedTtl,
useRedisSets: useRedisSets,
});
expect(mockCacheCalls[0][0].store).toBeInstanceOf(KeyvRedis);
const redis = KeyvRedis as unknown as jest.Mock;
const mockRedisCalls = redis.mock.calls.splice(-1);
expect(mockRedisCalls[0][0]).toEqual(redisConnection);
});
expect(mockCacheCalls[0][0].store).toBeInstanceOf(KeyvRedis);
const redis = KeyvRedis as unknown as jest.Mock;
const mockRedisCalls = redis.mock.calls.splice(-1);
expect(mockRedisCalls[0][0]).toEqual(redisConnection);
});
describe('connection errors', () => {
+13 -1
View File
@@ -55,6 +55,7 @@ export class CacheManager {
private readonly logger: LoggerService;
private readonly store: keyof CacheManager['storeFactories'];
private readonly connection: string;
private readonly useRedisSets: boolean;
private readonly errorHandler: CacheManagerOptions['onError'];
/**
@@ -72,15 +73,24 @@ export class CacheManager {
const store = config.getOptionalString('backend.cache.store') || 'memory';
const connectionString =
config.getOptionalString('backend.cache.connection') || '';
const useRedisSets =
config.getOptionalBoolean('backend.cache.useRedisSets') ?? true;
const logger = (options.logger || getRootLogger()).child({
type: 'cacheManager',
});
return new CacheManager(store, connectionString, logger, options.onError);
return new CacheManager(
store,
connectionString,
useRedisSets,
logger,
options.onError,
);
}
private constructor(
store: string,
connectionString: string,
useRedisSets: boolean,
logger: LoggerService,
errorHandler: CacheManagerOptions['onError'],
) {
@@ -90,6 +100,7 @@ export class CacheManager {
this.logger = logger;
this.store = store as keyof CacheManager['storeFactories'];
this.connection = connectionString;
this.useRedisSets = useRedisSets;
this.errorHandler = errorHandler;
}
@@ -143,6 +154,7 @@ export class CacheManager {
namespace: pluginId,
ttl: defaultTtl,
store: new KeyvRedis(this.connection),
useRedisSets: this.useRedisSets,
});
}
+9
View File
@@ -1,5 +1,14 @@
# @backstage/backend-defaults
## 0.2.6-next.2
### Patch Changes
- Updated dependencies
- @backstage/backend-common@0.19.8-next.2
- @backstage/backend-app-api@0.5.6-next.2
- @backstage/backend-plugin-api@0.6.6-next.2
## 0.2.5-next.1
### 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.5-next.1",
"version": "0.2.6-next.2",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+39
View File
@@ -1,5 +1,44 @@
# example-backend-next
## 0.0.16-next.2
### Patch Changes
- Updated dependencies
- @backstage/plugin-nomad-backend@0.1.8-next.2
- @backstage/plugin-scaffolder-backend@1.18.0-next.2
- @backstage/plugin-techdocs-backend@1.8.0-next.2
- @backstage/plugin-auth-node@0.4.0-next.2
- @backstage/plugin-catalog-backend@1.14.0-next.2
- @backstage/plugin-kubernetes-backend@0.12.3-next.2
- @backstage/plugin-jenkins-backend@0.2.9-next.2
- @backstage/backend-defaults@0.2.6-next.2
- @backstage/backend-tasks@0.5.11-next.2
- @backstage/plugin-adr-backend@0.4.3-next.2
- @backstage/plugin-app-backend@0.3.54-next.2
- @backstage/plugin-azure-devops-backend@0.4.3-next.2
- @backstage/plugin-badges-backend@0.3.3-next.2
- @backstage/plugin-catalog-backend-module-scaffolder-entity-model@0.1.3-next.2
- @backstage/plugin-devtools-backend@0.2.3-next.2
- @backstage/plugin-entity-feedback-backend@0.2.3-next.2
- @backstage/plugin-lighthouse-backend@0.3.3-next.2
- @backstage/plugin-linguist-backend@0.5.3-next.2
- @backstage/plugin-permission-backend@0.5.29-next.2
- @backstage/plugin-permission-backend-module-allow-all-policy@0.1.3-next.2
- @backstage/plugin-permission-node@0.7.17-next.2
- @backstage/plugin-playlist-backend@0.3.10-next.2
- @backstage/plugin-proxy-backend@0.4.3-next.2
- @backstage/plugin-search-backend@1.4.6-next.2
- @backstage/plugin-search-backend-module-catalog@0.1.10-next.2
- @backstage/plugin-search-backend-module-explore@0.1.10-next.2
- @backstage/plugin-search-backend-module-techdocs@0.1.10-next.2
- @backstage/plugin-search-backend-node@1.2.10-next.2
- @backstage/plugin-sonarqube-backend@0.2.8-next.2
- @backstage/plugin-todo-backend@0.3.4-next.2
- @backstage/backend-plugin-api@0.6.6-next.2
- @backstage/plugin-catalog-backend-module-unprocessed@0.3.3-next.2
- @backstage/plugin-permission-common@0.7.9-next.0
## 0.0.16-next.1
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "example-backend-next",
"version": "0.0.16-next.1",
"version": "0.0.16-next.2",
"main": "dist/index.cjs.js",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -1,5 +1,17 @@
# @backstage/backend-openapi-utils
## 0.0.5-next.0
### Patch Changes
- 7c83975531: Adds new public utility types for common OpenAPI values, like request and response shapes and parameters available on an endpoint.
**deprecated** `internal` namespace
The internal namespace will continue to be exported but now uses OpenAPI format for path parameters. You should use the new utility types.
- Updated dependencies
- @backstage/errors@1.2.3-next.0
## 0.0.4
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-openapi-utils",
"description": "OpenAPI typescript support.",
"version": "0.0.4",
"version": "0.0.5-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+11
View File
@@ -1,5 +1,16 @@
# @backstage/backend-plugin-api
## 0.6.6-next.2
### Patch Changes
- Updated dependencies
- @backstage/plugin-auth-node@0.4.0-next.2
- @backstage/backend-tasks@0.5.11-next.2
- @backstage/config@1.1.1-next.0
- @backstage/types@1.1.1
- @backstage/plugin-permission-common@0.7.9-next.0
## 0.6.5-next.1
### 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.5-next.1",
"version": "0.6.6-next.2",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
@@ -1,5 +1,28 @@
# @backstage/backend-plugin-manager
## 0.0.2-next.2
### Patch Changes
- Updated dependencies
- @backstage/backend-common@0.19.8-next.2
- @backstage/plugin-auth-node@0.4.0-next.2
- @backstage/plugin-catalog-backend@1.14.0-next.2
- @backstage/errors@1.2.3-next.0
- @backstage/backend-tasks@0.5.11-next.2
- @backstage/plugin-events-backend@0.2.15-next.2
- @backstage/plugin-permission-node@0.7.17-next.2
- @backstage/plugin-scaffolder-node@0.2.6-next.2
- @backstage/plugin-search-backend-node@1.2.10-next.2
- @backstage/backend-plugin-api@0.6.6-next.2
- @backstage/cli-common@0.1.13-next.0
- @backstage/cli-node@0.1.5-next.1
- @backstage/config@1.1.1-next.0
- @backstage/types@1.1.1
- @backstage/plugin-events-node@0.2.15-next.2
- @backstage/plugin-permission-common@0.7.9-next.0
- @backstage/plugin-search-common@1.2.7-next.0
## 0.0.2-next.1
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/backend-plugin-manager",
"description": "Backstage plugin management backend",
"version": "0.0.2-next.1",
"version": "0.0.2-next.2",
"private": true,
"main": "src/index.ts",
"types": "src/index.ts",
+10
View File
@@ -1,5 +1,15 @@
# @backstage/backend-tasks
## 0.5.11-next.2
### Patch Changes
- Updated dependencies
- @backstage/backend-common@0.19.8-next.2
- @backstage/errors@1.2.3-next.0
- @backstage/config@1.1.1-next.0
- @backstage/types@1.1.1
## 0.5.10-next.1
### 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.10-next.1",
"version": "0.5.11-next.2",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+15
View File
@@ -1,5 +1,20 @@
# @backstage/backend-test-utils
## 0.2.7-next.2
### Patch Changes
- a250ad775f: Added `createMockDirectory()` to help out with file system mocking in tests.
- 74491c9602: Updated to import `HostDiscovery` from `@backstage/backend-app-api`.
- Updated dependencies
- @backstage/backend-common@0.19.8-next.2
- @backstage/plugin-auth-node@0.4.0-next.2
- @backstage/errors@1.2.3-next.0
- @backstage/backend-app-api@0.5.6-next.2
- @backstage/backend-plugin-api@0.6.6-next.2
- @backstage/config@1.1.1-next.0
- @backstage/types@1.1.1
## 0.2.6-next.1
### 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.6-next.1",
"version": "0.2.7-next.2",
"main": "src/index.ts",
"types": "src/index.ts",
"publishConfig": {
+59
View File
@@ -1,5 +1,64 @@
# example-backend
## 0.2.88-next.2
### Patch Changes
- Updated dependencies
- @backstage/plugin-nomad-backend@0.1.8-next.2
- @backstage/backend-common@0.19.8-next.2
- @backstage/plugin-scaffolder-backend@1.18.0-next.2
- @backstage/plugin-techdocs-backend@1.8.0-next.2
- @backstage/plugin-auth-node@0.4.0-next.2
- @backstage/plugin-catalog-backend@1.14.0-next.2
- @backstage/catalog-model@1.4.3-next.0
- @backstage/integration@1.7.1-next.1
- @backstage/plugin-kubernetes-backend@0.12.3-next.2
- @backstage/plugin-jenkins-backend@0.2.9-next.2
- @backstage/plugin-auth-backend@0.19.3-next.2
- @backstage/backend-tasks@0.5.11-next.2
- @backstage/plugin-adr-backend@0.4.3-next.2
- @backstage/plugin-app-backend@0.3.54-next.2
- @backstage/plugin-azure-devops-backend@0.4.3-next.2
- @backstage/plugin-azure-sites-backend@0.1.16-next.2
- @backstage/plugin-badges-backend@0.3.3-next.2
- @backstage/plugin-catalog-backend-module-scaffolder-entity-model@0.1.3-next.2
- @backstage/plugin-catalog-node@1.4.7-next.2
- @backstage/plugin-code-coverage-backend@0.2.20-next.2
- @backstage/plugin-devtools-backend@0.2.3-next.2
- @backstage/plugin-entity-feedback-backend@0.2.3-next.2
- @backstage/plugin-events-backend@0.2.15-next.2
- @backstage/plugin-explore-backend@0.0.16-next.2
- @backstage/plugin-graphql-backend@0.1.44-next.2
- @backstage/plugin-kafka-backend@0.3.3-next.2
- @backstage/plugin-lighthouse-backend@0.3.3-next.2
- @backstage/plugin-linguist-backend@0.5.3-next.2
- @backstage/plugin-permission-backend@0.5.29-next.2
- @backstage/plugin-permission-node@0.7.17-next.2
- @backstage/plugin-playlist-backend@0.3.10-next.2
- @backstage/plugin-proxy-backend@0.4.3-next.2
- @backstage/plugin-rollbar-backend@0.1.51-next.2
- @backstage/plugin-scaffolder-backend-module-confluence-to-markdown@0.2.7-next.2
- @backstage/plugin-scaffolder-backend-module-rails@0.4.23-next.2
- @backstage/plugin-search-backend@1.4.6-next.2
- @backstage/plugin-search-backend-module-catalog@0.1.10-next.2
- @backstage/plugin-search-backend-module-elasticsearch@1.3.9-next.2
- @backstage/plugin-search-backend-module-explore@0.1.10-next.2
- @backstage/plugin-search-backend-module-pg@0.5.15-next.2
- @backstage/plugin-search-backend-module-techdocs@0.1.10-next.2
- @backstage/plugin-search-backend-node@1.2.10-next.2
- @backstage/plugin-tech-insights-backend@0.5.20-next.2
- @backstage/plugin-tech-insights-backend-module-jsonfc@0.1.38-next.2
- @backstage/plugin-tech-insights-node@0.4.12-next.2
- @backstage/plugin-todo-backend@0.3.4-next.2
- example-app@0.2.88-next.2
- @backstage/catalog-client@1.4.5-next.0
- @backstage/config@1.1.1-next.0
- @backstage/plugin-catalog-backend-module-unprocessed@0.3.3-next.2
- @backstage/plugin-events-node@0.2.15-next.2
- @backstage/plugin-permission-common@0.7.9-next.0
- @backstage/plugin-search-common@1.2.7-next.0
## 0.2.88-next.1
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "example-backend",
"version": "0.2.88-next.1",
"version": "0.2.88-next.2",
"main": "dist/index.cjs.js",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -81,7 +81,7 @@
"@gitbeaker/node": "^35.1.0",
"@octokit/rest": "^19.0.3",
"@opentelemetry/api": "^1.4.1",
"@opentelemetry/exporter-prometheus": "^0.43.0",
"@opentelemetry/exporter-prometheus": "^0.44.0",
"@opentelemetry/sdk-metrics": "^1.13.0",
"azure-devops-node-api": "^11.0.1",
"better-sqlite3": "^8.0.0",
-3
View File
@@ -55,7 +55,6 @@ import search from './plugins/search';
import techdocs from './plugins/techdocs';
import techInsights from './plugins/techInsights';
import todo from './plugins/todo';
import graphql from './plugins/graphql';
import app from './plugins/app';
import badges from './plugins/badges';
import jenkins from './plugins/jenkins';
@@ -155,7 +154,6 @@ async function main() {
const todoEnv = useHotMemoize(module, () => createEnv('todo'));
const kubernetesEnv = useHotMemoize(module, () => createEnv('kubernetes'));
const kafkaEnv = useHotMemoize(module, () => createEnv('kafka'));
const graphqlEnv = useHotMemoize(module, () => createEnv('graphql'));
const appEnv = useHotMemoize(module, () => createEnv('app'));
const badgesEnv = useHotMemoize(module, () => createEnv('badges'));
const jenkinsEnv = useHotMemoize(module, () => createEnv('jenkins'));
@@ -190,7 +188,6 @@ async function main() {
apiRouter.use('/kubernetes', await kubernetes(kubernetesEnv));
apiRouter.use('/kafka', await kafka(kafkaEnv));
apiRouter.use('/proxy', await proxy(proxyEnv));
apiRouter.use('/graphql', await graphql(graphqlEnv));
apiRouter.use('/badges', await badges(badgesEnv));
apiRouter.use('/jenkins', await jenkins(jenkinsEnv));
apiRouter.use('/permission', await permission(permissionEnv));
+8
View File
@@ -1,5 +1,13 @@
# @backstage/catalog-client
## 1.4.5-next.0
### Patch Changes
- Updated dependencies
- @backstage/catalog-model@1.4.3-next.0
- @backstage/errors@1.2.3-next.0
## 1.4.4
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/catalog-client",
"description": "An isomorphic client for the catalog backend",
"version": "1.4.4",
"version": "1.4.5-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+9
View File
@@ -1,5 +1,14 @@
# @backstage/catalog-model
## 1.4.3-next.0
### Patch Changes
- 0b55f773a7: Removed some unused dependencies
- Updated dependencies
- @backstage/errors@1.2.3-next.0
- @backstage/types@1.1.1
## 1.4.2
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/catalog-model",
"description": "Types and validators that help describe the model of a Backstage Catalog",
"version": "1.4.2",
"version": "1.4.3-next.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+9
View File
@@ -1,5 +1,14 @@
# @backstage/cli-node
## 0.1.5-next.1
### Patch Changes
- Updated dependencies
- @backstage/errors@1.2.3-next.0
- @backstage/cli-common@0.1.13-next.0
- @backstage/types@1.1.1
## 0.1.5-next.0
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/cli-node",
"description": "Node.js library for Backstage CLIs",
"version": "0.1.5-next.0",
"version": "0.1.5-next.1",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
+41 -1
View File
@@ -1,5 +1,45 @@
# @backstage/cli
## 0.23.0-next.2
### Minor Changes
- 8defbd5434: Update typescript-eslint to 6.7.x, adding compatibility with TypeScript 5.2.
This includes a major update on typescript-eslint, you can see the details in the [release notes](https://typescript-eslint.io/blog/announcing-typescript-eslint-v6/).
### Patch Changes
- 2ef6522552: Support for the `.icon.svg` extension has been deprecated and will be removed in the future. The implementation of this extension is too tied to a particular version of MUI and the SVGO, and it makes it harder to evolve the build system. We may introduce the ability to reintroduce this kind of functionality in the future through configuration for use in internal plugins, but for now we're forced to remove it.
To migrate existing code, rename the `.icon.svg` file to `.tsx` and replace the `<svg>` element with `<SvgIcon>` from MUI and add necessary imports. For example:
```tsx
import React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
import { IconComponent } from '@backstage/core-plugin-api';
export const CodeSceneIcon = (props: SvgIconProps) => (
<SvgIcon {...props}>
<g>
<path d="..." />
</g>
</SvgIcon>
);
```
- Updated dependencies
- @backstage/catalog-model@1.4.3-next.0
- @backstage/config-loader@1.5.1-next.1
- @backstage/integration@1.7.1-next.1
- @backstage/errors@1.2.3-next.0
- @backstage/cli-common@0.1.13-next.0
- @backstage/cli-node@0.1.5-next.1
- @backstage/config@1.1.1-next.0
- @backstage/eslint-plugin@0.1.3
- @backstage/release-manifests@0.0.10
- @backstage/types@1.1.1
## 0.23.0-next.1
### Patch Changes
@@ -21,7 +61,7 @@
### 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.
- 7077dbf131: **BREAKING** 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`, which is recommended if you haven't migrated to the new backend system.
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.
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/cli",
"description": "CLI for developing Backstage plugins and apps",
"version": "0.23.0-next.1",
"version": "0.23.0-next.2",
"publishConfig": {
"access": "public"
},
@@ -66,7 +66,7 @@
"@swc/jest": "^0.2.22",
"@types/jest": "^29.0.0",
"@types/webpack-env": "^1.15.2",
"@typescript-eslint/eslint-plugin": "6.7.2",
"@typescript-eslint/eslint-plugin": "6.7.5",
"@typescript-eslint/parser": "^6.7.2",
"@yarnpkg/lockfile": "^1.1.0",
"@yarnpkg/parsers": "^3.0.0-rc.4",
@@ -113,7 +113,7 @@ export class GithubDiscoveryProvider implements Provider {
const query = `query repositories($org: String!, $cursor: String) {
repositoryOwner(login: $org) {
login
repositories(first: 100, after: $cursor) {
repositories(first: 50, after: $cursor) {
nodes {
name
url
+13
View File
@@ -1,5 +1,18 @@
# @backstage/config-loader
## 1.5.1-next.1
### Patch Changes
- 0b55f773a7: Removed some unused dependencies
- 30c553c1d2: Updated dependency `typescript-json-schema` to `^0.61.0`.
- a4617c422a: Added `watch` option to configuration loaders that can be used to disable file watching by setting it to `false`.
- Updated dependencies
- @backstage/errors@1.2.3-next.0
- @backstage/cli-common@0.1.13-next.0
- @backstage/config@1.1.1-next.0
- @backstage/types@1.1.1
## 1.5.1-next.0
### Patch 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.1-next.0",
"version": "1.5.1-next.1",
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
+8
View File
@@ -1,5 +1,13 @@
# @backstage/config
## 1.1.1-next.0
### Patch Changes
- Updated dependencies
- @backstage/errors@1.2.3-next.0
- @backstage/types@1.1.1
## 1.1.0
### Minor Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/config",
"description": "Config API used by Backstage core, backend, and CLI",
"version": "1.1.0",
"version": "1.1.1-next.0",
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
+15
View File
@@ -1,5 +1,20 @@
# @backstage/core-app-api
## 1.11.0-next.2
### Minor Changes
- c9d9bfeca2: URL encode some well known unsafe characters in `RouteResolver` (and therefore `useRouteRef`)
### Patch Changes
- acca17e91a: Wrap entire app in `<Suspense>`, enabling support for using translations outside plugins.
- Updated dependencies
- @backstage/core-plugin-api@1.7.0-next.1
- @backstage/config@1.1.1-next.0
- @backstage/types@1.1.1
- @backstage/version-bridge@1.0.5
## 1.10.1-next.1
### Patch Changes
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/core-app-api",
"description": "Core app API used by Backstage apps",
"version": "1.10.1-next.1",
"version": "1.11.0-next.2",
"publishConfig": {
"access": "public"
},
@@ -64,8 +64,8 @@
"devDependencies": {
"@backstage/cli": "workspace:^",
"@backstage/test-utils": "workspace:^",
"@testing-library/dom": "^8.0.0",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^12.1.3",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^14.0.0",
@@ -377,8 +377,7 @@ describe('I18nextTranslationApi', () => {
},
});
});
expect(translations).toEqual(['foo', null, 'Föö', null, 'Føø']);
expect(translations).toEqual(['foo', 'Föö', 'Føø']);
});
describe('formatting', () => {
@@ -241,7 +241,6 @@ export class I18nextTranslationApi implements TranslationApi {
return new ObservableImpl<TranslationSnapshot<TMessages>>(subscriber => {
let loadTicket = {}; // To check for stale loads
let lastSnapshotWasReady = false;
const loadResource = () => {
loadTicket = {};
@@ -250,8 +249,7 @@ export class I18nextTranslationApi implements TranslationApi {
() => {
if (ticket === loadTicket) {
const snapshot = this.#createSnapshot(internalRef);
if (snapshot.ready || lastSnapshotWasReady) {
lastSnapshotWasReady = snapshot.ready;
if (snapshot.ready) {
subscriber.next(snapshot);
}
}
@@ -266,12 +264,9 @@ export class I18nextTranslationApi implements TranslationApi {
const onChange = () => {
const snapshot = this.#createSnapshot(internalRef);
if (lastSnapshotWasReady && !snapshot.ready) {
lastSnapshotWasReady = snapshot.ready;
if (snapshot.ready) {
subscriber.next(snapshot);
}
if (!snapshot.ready) {
} else {
loadResource();
}
};
+1 -1
View File
@@ -70,7 +70,7 @@ function SignInPageWrapper({
}) {
const [identityApi, setIdentityApi] = useState<IdentityApi>();
const configApi = useApi(configApiRef);
const basePath = getBasePath(configApi);
const basePath = readBasePath(configApi);
if (!identityApi) {
return <Component onSignInSuccess={setIdentityApi} />;
+15
View File
@@ -1,5 +1,20 @@
# @backstage/core-components
## 0.13.6-next.2
### Patch Changes
- 0b55f773a7: Removed some unused dependencies
- 8a15360bb4: Fixed overflowing messages in `WarningPanel`.
- Updated dependencies
- @backstage/core-plugin-api@1.7.0-next.1
- @backstage/catalog-model@1.4.3-next.0
- @backstage/plugin-catalog-react@1.8.5-next.2
- @backstage/errors@1.2.3-next.0
- @backstage/theme@0.4.3-next.0
- @backstage/config@1.1.1-next.0
- @backstage/version-bridge@1.0.5
## 0.13.6-next.1
### Patch Changes
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/core-components",
"description": "Core components used by Backstage plugins and apps",
"version": "0.13.6-next.1",
"version": "0.13.6-next.2",
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
@@ -86,8 +86,8 @@
"@backstage/cli": "workspace:^",
"@backstage/core-app-api": "workspace:^",
"@backstage/test-utils": "workspace:^",
"@testing-library/dom": "^8.0.0",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^12.1.3",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^14.0.0",
+10
View File
@@ -1,5 +1,15 @@
# @backstage/core-plugin-api
## 1.7.0-next.1
### Patch Changes
- 0b55f773a7: Removed some unused dependencies
- Updated dependencies
- @backstage/config@1.1.1-next.0
- @backstage/types@1.1.1
- @backstage/version-bridge@1.0.5
## 1.7.0-next.0
### Minor Changes
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/core-plugin-api",
"description": "Core API used by Backstage plugins",
"version": "1.7.0-next.0",
"version": "1.7.0-next.1",
"publishConfig": {
"access": "public"
},
@@ -62,8 +62,8 @@
"@backstage/cli": "workspace:^",
"@backstage/core-app-api": "workspace:^",
"@backstage/test-utils": "workspace:^",
"@testing-library/dom": "^8.0.0",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^12.1.3",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^14.0.0"
+8
View File
@@ -1,5 +1,13 @@
# @backstage/create-app
## 0.5.6-next.2
### Patch Changes
- Bumped create-app version.
- Updated dependencies
- @backstage/cli-common@0.1.13-next.0
## 0.5.6-next.1
### Patch Changes

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