@backstage/plugin-search-common 0.0.0-nightly-20220305022735

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,154 @@
1
+ # @backstage/plugin-search-common
2
+
3
+ ## 0.0.0-nightly-20220305022735
4
+
5
+ ### Patch Changes
6
+
7
+ - d52155466a: Renamed `@backstage/search-common` to `@backstage/plugin-search-common`.
8
+
9
+ ## 0.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 022507c860: **BREAKING**
14
+
15
+ The Backstage Search Platform's indexing process has been rewritten as a stream
16
+ pipeline in order to improve efficiency and performance on large document sets.
17
+
18
+ The concepts of `Collator` and `Decorator` have been replaced with readable and
19
+ transform object streams (respectively), as well as factory classes to
20
+ instantiate them. Accordingly, the `SearchEngine.index()` method has also been
21
+ replaced with a `getIndexer()` factory method that resolves to a writable
22
+ object stream.
23
+
24
+ Check [this upgrade guide](https://backstage.io/docs/features/search/how-to-guides#how-to-migrate-from-search-alpha-to-beta)
25
+ for further details.
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+ - @backstage/plugin-permission-common@0.5.2
31
+
32
+ ## 0.2.4
33
+
34
+ ### Patch Changes
35
+
36
+ - Fix for the previous release with missing type declarations.
37
+ - Updated dependencies
38
+ - @backstage/types@0.1.3
39
+ - @backstage/plugin-permission-common@0.5.1
40
+
41
+ ## 0.2.3
42
+
43
+ ### Patch Changes
44
+
45
+ - c77c5c7eb6: Added `backstage.role` to `package.json`
46
+ - Updated dependencies
47
+ - @backstage/plugin-permission-common@0.5.0
48
+ - @backstage/types@0.1.2
49
+
50
+ ## 0.2.2
51
+
52
+ ### Patch Changes
53
+
54
+ - 9a511968b1: - Add optional visibilityPermission property to DocumentCollator type
55
+ - Add new DocumentTypeInfo type for housing information about the document types stored in a search engine.
56
+ - b2e918fa0b: Add optional resourceRef field to the IndexableDocument type for use when authorizing access to documents.
57
+ - 96cbebc629: Add optional query request options containing authorization token to SearchEngine#query.
58
+
59
+ ## 0.2.1
60
+
61
+ ### Patch Changes
62
+
63
+ - 10615525f3: Switch to use the json and observable types from `@backstage/types`
64
+
65
+ ## 0.2.0
66
+
67
+ ### Minor Changes
68
+
69
+ - a13f21cdc: Implement optional `pageCursor` based paging in search.
70
+
71
+ To use paging in your app, add a `<SearchResultPager />` to your
72
+ `SearchPage.tsx`.
73
+
74
+ ## 0.1.3
75
+
76
+ ### Patch Changes
77
+
78
+ - d9c13d535: Implements configuration and indexing functionality for ElasticSearch search engine. Adds indexing, searching and default translator for ElasticSearch and modifies default backend example-app to use ES if it is configured.
79
+
80
+ ## Example configurations:
81
+
82
+ ### AWS
83
+
84
+ Using AWS hosted ElasticSearch the only configuration options needed is the URL to the ElasticSearch service. The implementation assumes
85
+ that environment variables for AWS access key id and secret access key are defined in accordance to the [default AWS credential chain.](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html).
86
+
87
+ ```yaml
88
+ search:
89
+ elasticsearch:
90
+ provider: aws
91
+ node: https://my-backstage-search-asdfqwerty.eu-west-1.es.amazonaws.com
92
+ ```
93
+
94
+ ### Elastic.co
95
+
96
+ Elastic Cloud hosted ElasticSearch uses a Cloud ID to determine the instance of hosted ElasticSearch to connect to. Additionally, username and password needs to be provided either directly or using environment variables like defined in [Backstage documentation.](https://backstage.io/docs/conf/writing#includes-and-dynamic-data)
97
+
98
+ ```yaml
99
+ search:
100
+ elasticsearch:
101
+ provider: elastic
102
+ cloudId: backstage-elastic:asdfqwertyasdfqwertyasdfqwertyasdfqwerty==
103
+ auth:
104
+ username: elastic
105
+ password: changeme
106
+ ```
107
+
108
+ ### Others
109
+
110
+ Other ElasticSearch instances can be connected to by using standard ElasticSearch authentication methods and exposed URL, provided that the cluster supports that. The configuration options needed are the URL to the node and authentication information. Authentication can be handled by either providing username/password or and API key or a bearer token. In case both username/password combination and one of the tokens are provided, token takes precedence. For more information how to create an API key, see [Elastic documentation on API keys](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html) and how to create a bearer token, see [Elastic documentation on tokens.](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html)
111
+
112
+ #### Configuration examples
113
+
114
+ ##### With username and password
115
+
116
+ ```yaml
117
+ search:
118
+ elasticsearch:
119
+ node: http://localhost:9200
120
+ auth:
121
+ username: elastic
122
+ password: changeme
123
+ ```
124
+
125
+ ##### With bearer token
126
+
127
+ ```yaml
128
+ search:
129
+ elasticsearch:
130
+ node: http://localhost:9200
131
+ auth:
132
+ bearer: token
133
+ ```
134
+
135
+ ##### With API key
136
+
137
+ ```yaml
138
+ search:
139
+ elasticsearch:
140
+ node: http://localhost:9200
141
+ auth:
142
+ apiKey: base64EncodedKey
143
+ ```
144
+
145
+ - Updated dependencies
146
+ - @backstage/config@0.1.6
147
+
148
+ ## 0.1.2
149
+
150
+ ### Patch Changes
151
+
152
+ - db1c8f93b: The `<Search...Next /> set of components exported by the Search Plugin are now updated to use the Search Backend API. These will be made available as the default non-"next" versions in a follow-up release.
153
+
154
+ The interfaces for decorators and collators in the Search Backend have also seen minor, breaking revisions ahead of a general release. If you happen to be building on top of these interfaces, check and update your implementations accordingly. The APIs will be considered more stable in a follow-up release.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @backstage/plugin-search-common
2
+
3
+ Common functionalities for Search, to be shared between various search-enabled plugins.
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@backstage/plugin-search-common",
3
+ "description": "Common functionalities for Search, to be shared between various search-enabled plugins",
4
+ "version": "0.0.0-nightly-20220305022735",
5
+ "main": "dist/index.cjs.js",
6
+ "types": "dist/index.d.ts",
7
+ "private": false,
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "main": "dist/index.cjs.js",
11
+ "types": "dist/index.d.ts"
12
+ },
13
+ "backstage": {
14
+ "role": "common-library"
15
+ },
16
+ "homepage": "https://backstage.io",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/backstage/backstage",
20
+ "directory": "plugins/search-common"
21
+ },
22
+ "keywords": [
23
+ "backstage",
24
+ "search"
25
+ ],
26
+ "license": "Apache-2.0",
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "scripts": {
31
+ "build": "backstage-cli package build",
32
+ "lint": "backstage-cli package lint",
33
+ "test": "backstage-cli package test",
34
+ "prepack": "backstage-cli package prepack",
35
+ "postpack": "backstage-cli package postpack",
36
+ "clean": "backstage-cli package clean"
37
+ },
38
+ "bugs": {
39
+ "url": "https://github.com/backstage/backstage/issues"
40
+ },
41
+ "dependencies": {
42
+ "@backstage/types": "^0.1.3",
43
+ "@backstage/plugin-permission-common": "^0.5.2"
44
+ },
45
+ "devDependencies": {
46
+ "@backstage/cli": "^0.0.0-nightly-20220305022735"
47
+ },
48
+ "jest": {
49
+ "roots": [
50
+ ".."
51
+ ]
52
+ }
53
+ }