You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,17 @@
1
+
## 4.0.0 (August 05, 2025)
2
+
* BREAKING CHANGE – All clients named `*RestClient` have been removed except for `PlatformApiRestClient`. Any removed client logic should now be implemented within components.
3
+
*`PlatformApiRestClient` has been migrated from the `request` library to `axios`.
4
+
* The following libraries have been removed from the main dependencies:
5
+
*@elastic.io/ntlm-client
6
+
* async
7
+
* bunyan-serializers
8
+
* elasticio-node
9
+
* better-npm-audit
10
+
* remove-leading-slash
11
+
* remove-trailing-slash
12
+
* request
13
+
* The `axiosReqWithRetryOnServerError` function can now operate without requiring a context.
A number of REST Client classes are available to use and extend to create Clients for a given API.
37
-
38
-
Each of the REST Clients extends from the `NoAuthRestClient`, overriding the relevant methods. Exception is PlatformApiRestClient and PlatformApiLogicClient.
39
-
40
-
### NoAuthRestClient
41
-
[NoAuthRestClient](https://github.com/elasticio/component-commons-library/blob/master/src/authentication/NoAuthRestClient.ts) class to make rest requests no no auth APIs by provided options.
42
-
43
-
#### constructor(emitter, cfg)
44
-
- emitter - EIO emitting context.
45
-
- cfg - configuration of EIO component object.
46
-
47
-
```
48
-
const Client = new NoAuthRestClient(emitter, cfg);
49
-
```
50
-
51
-
#### async makeRequest(options)
52
-
Makes requests:
53
-
options expects the following sub-variables:
54
-
- url: Url to call
55
-
- method: HTTP verb to use
56
-
- body: Body of the request, if applicable. Defaults to undefined.
57
-
- headers: Any HTTP headers to add to the request. Defaults to {}
58
-
- urlIsSegment: Whether to append to the base server url or if the provided URL is an absolute path. Defaults to true
59
-
- isJson: If the request is in JSON format. Defaults to true
60
-
61
-
62
-
Class can be extended to have custom authentication
class extends [NoAuthRestClient](#NoAuthRestClient) class.
145
-
Makes requests to resource with [NTLM authentication](https://en.wikipedia.org/wiki/NT_LAN_Manager).
146
-
Falls back to basic authentication if NTLM authentication fails.
147
-
Handles both V1 and V2 of the NTLM Protocol.
148
-
149
-
#### constructor(emitter, cfg)
150
-
- cfg.username - mandatory cfg parameter contains username for authorization. Domain information should be combined with this field. (e.g. `SOMEDOMAIN\SomeUser`)
151
-
- cfg.password - mandatory cfg parameter contains password for authorization.
152
-
153
-
```
154
-
const Client = new NtlmRestClient(emitter, cfg);
155
-
```
156
28
157
29
## Platform API Clients
158
30
A number of Platform API Client classes are available to use and extend them to create Clients for Platform API.
0 commit comments