Version Packages
This commit is contained in:
@@ -1,5 +1,40 @@
|
||||
# @backstage/plugin-search-backend
|
||||
|
||||
## 0.4.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- bbfbc755aa: **BREAKING** Added three additional required properties to `createRouter` to support filtering search results based on permissions. To make this change to an existing app, add the required parameters to the `createRouter` call in `packages/backend/src/plugins/search.ts`:
|
||||
|
||||
```diff
|
||||
export default async function createPlugin({
|
||||
logger,
|
||||
+ permissions,
|
||||
discovery,
|
||||
config,
|
||||
tokenManager,
|
||||
}: PluginEnvironment) {
|
||||
/* ... */
|
||||
|
||||
return await createRouter({
|
||||
engine: indexBuilder.getSearchEngine(),
|
||||
+ types: indexBuilder.getDocumentTypes(),
|
||||
+ permissions,
|
||||
+ config,
|
||||
logger,
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-search-backend-node@0.4.5
|
||||
- @backstage/plugin-auth-backend@0.8.0
|
||||
- @backstage/search-common@0.2.2
|
||||
- @backstage/backend-common@0.10.5
|
||||
- @backstage/plugin-permission-node@0.4.1
|
||||
|
||||
## 0.3.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-search-backend",
|
||||
"description": "The Backstage backend plugin that provides your backstage app with search",
|
||||
"version": "0.3.1",
|
||||
"version": "0.4.0",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
@@ -20,14 +20,14 @@
|
||||
"clean": "backstage-cli clean"
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage/backend-common": "^0.10.4",
|
||||
"@backstage/backend-common": "^0.10.5",
|
||||
"@backstage/config": "^0.1.13",
|
||||
"@backstage/errors": "^0.2.0",
|
||||
"@backstage/search-common": "^0.2.1",
|
||||
"@backstage/plugin-auth-backend": "^0.7.0-next.0",
|
||||
"@backstage/search-common": "^0.2.2",
|
||||
"@backstage/plugin-auth-backend": "^0.8.0",
|
||||
"@backstage/plugin-permission-common": "^0.4.0-next.0",
|
||||
"@backstage/plugin-permission-node": "^0.4.0-next.0",
|
||||
"@backstage/plugin-search-backend-node": "^0.4.4",
|
||||
"@backstage/plugin-permission-node": "^0.4.1",
|
||||
"@backstage/plugin-search-backend-node": "^0.4.5",
|
||||
"@backstage/types": "^0.1.1",
|
||||
"@types/express": "^4.17.6",
|
||||
"dataloader": "^2.0.0",
|
||||
@@ -40,7 +40,7 @@
|
||||
"zod": "^3.11.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "^0.12.0",
|
||||
"@backstage/cli": "^0.13.0",
|
||||
"@types/supertest": "^2.0.8",
|
||||
"supertest": "^6.1.3"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user