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
+10
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,11 @@
1
+
### Changed
2
+
-**Breaking change** Drop support of Node.js 12. The version [5.1.4](https://github.com/reportportal/client-javascript/releases/tag/v5.1.4) is the latest that supports it.
3
+
- The client now creates an instance of the `axios` HTTP client in the constructor.
4
+
- The `HOST` HTTP header is added to all requests as it was skipped by the HTTP client.
5
+
### Fixed
6
+
- Allow using `restClientConfig` in `checkConnect()` method. Thanks to [stevez](https://github.com/stevez).
7
+
### Security
8
+
- Updated versions of vulnerable packages (braces).
1
9
2
10
## [5.1.4] - 2024-05-22
3
11
### Fixed
@@ -23,6 +31,8 @@
23
31
-**Breaking change** Drop support of Node.js 10. The version [5.0.15](https://github.com/reportportal/client-javascript/releases/tag/v5.0.15) is the latest that supports it.
24
32
### Security
25
33
- Updated versions of vulnerable packages (axios, follow-redirects).
34
+
### Deprecated
35
+
- Node.js 12 usage. This minor version is the latest that supports Node.js 12.
| apiKey | Required || User's reportportal token from which you want to send requests. It can be found on the profile page of this user. |
59
-
| endpoint | Required || URL of your server. For example, if you visit the page at 'https://server:8080/ui', then endpoint will be equal to 'https://server:8080/api/v1'.|
60
-
| launch | Required || Name of the launch at creation. |
61
-
| project | Required || The name of the project in which the launches will be created. |
62
-
| headers | Optional | {} | The object with custom headers for internal http client. |
63
-
| debug | Optional | false | This flag allows seeing the logs of the client. Useful for debugging. |
64
-
| isLaunchMergeRequired | Optional | false | Allows client to merge launches into one at the end of the run via saving their UUIDs to the temp files at filesystem. At the end of the run launches can be merged using `mergeLaunches` method. Temp file format: `rplaunch-${launch_uuid}.tmp`. |
65
-
| restClientConfig | Optional | Not set |`axios` like http client [config](https://github.com/axios/axios#request-config). May contain `agent` property for configure [http(s)](https://nodejs.org/api/https.html#https_https_request_url_options_callback) client, and other client options eg. `timeout`. For debugging and displaying logs you can set `debug: true`. |
66
-
| launchUuidPrint | Optional | false | Whether to print the current launch UUID. |
67
-
| launchUuidPrintOutput | Optional | 'STDOUT' | Launch UUID printing output. Possible values: 'STDOUT', 'STDERR', 'FILE', 'ENVIRONMENT'. Works only if `launchUuidPrint` set to `true`. File format: `rp-launch-uuid-${launch_uuid}.tmp`. Env variable: `RP_LAUNCH_UUID`. |
68
-
| token | Deprecated | Not set | Use `apiKey` instead. |
| apiKey | Required || User's reportportal token from which you want to send requests. It can be found on the profile page of this user. |
59
+
| endpoint | Required || URL of your server. For example, if you visit the page at 'https://server:8080/ui', then endpoint will be equal to 'https://server:8080/api/v1'.|
60
+
| launch | Required || Name of the launch at creation. |
61
+
| project | Required || The name of the project in which the launches will be created. |
62
+
| headers | Optional | {} | The object with custom headers for internal http client. |
63
+
| debug | Optional | false | This flag allows seeing the logs of the client. Useful for debugging. |
64
+
| isLaunchMergeRequired | Optional | false | Allows client to merge launches into one at the end of the run via saving their UUIDs to the temp files at filesystem. At the end of the run launches can be merged using `mergeLaunches` method. Temp file format: `rplaunch-${launch_uuid}.tmp`.|
65
+
| restClientConfig | Optional | Not set |`axios` like http client [config](https://github.com/axios/axios#request-config). May contain `agent` property for configure [http(s)](https://nodejs.org/api/https.html#https_https_request_url_options_callback) client, and other client options eg. `timeout`. For debugging and displaying logs you can set `debug: true`. |
66
+
| launchUuidPrint | Optional | false | Whether to print the current launch UUID. |
67
+
| launchUuidPrintOutput | Optional | 'STDOUT' | Launch UUID printing output. Possible values: 'STDOUT', 'STDERR', 'FILE', 'ENVIRONMENT'. Works only if `launchUuidPrint` set to `true`. File format: `rp-launch-uuid-${launch_uuid}.tmp`. Env variable: `RP_LAUNCH_UUID`. |
68
+
| token | Deprecated | Not set | Use `apiKey` instead. |
69
69
70
70
## Asynchronous reporting
71
71
72
-
The client supports an asynchronous reporting.
73
-
If you want the client to work asynchronously change `v1` to `v2` in addresses in endpoint.
72
+
The client supports an asynchronous reporting (via the ReportPortal asynchronous API).
73
+
If you want the client to report through the asynchronous API, change `v1` to `v2` in the `endpoint` address.
0 commit comments