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
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,15 @@
1
+
### Added
2
+
- OAuth 2.0 Password Grant authentication, check [Authentication Options](https://github.com/reportportal/agent-js-jest?tab=readme-ov-file#authentication-options) for more details.
3
+
### Changed
4
+
-`@reportportal/client-javascript` bumped to version `5.4.3`.
1
5
2
6
## [5.2.0] - 2025-10-09
3
7
### Added
4
8
- Allow configuring the HTTP retry strategy via `restClientConfig.retry` and tune the [default policy](https://github.com/reportportal/client-javascript?tab=readme-ov-file#retry-configuration).
5
9
- New `launchUuidPrintOutput` types introduced: 'FILE', 'ENVIRONMENT'.
6
10
### Changed
7
11
-**Breaking change** Drop support of Node.js 12. The version [5.1.3](https://github.com/reportportal/agent-js-jest/releases/tag/v5.1.3) is the latest that supports it.
8
-
-`@reportportal/client-javascript` bumped to version `5.4.2.
12
+
-`@reportportal/client-javascript` bumped to version `5.4.2`.
9
13
### Security
10
14
- Updated versions of vulnerable packages (brace-expansion, axios, form-data).
| apiKey | Conditional || User's ReportPortal API key from which you want to send requests. It can be found on the profile page of this user. *Required only if OAuth is not configured. |
92
+
| oauth | Conditional || OAuth 2.0 configuration object. When provided, OAuth authentication will be used instead of API key. See OAuth Configuration below. |
93
+
94
+
#### OAuth Configuration
95
+
96
+
The `oauth` object supports the following properties:
| apiKey | Required || User's reportportal token from which you want to send requests. It can be found on the profile page of this user. |
82
131
| endpoint | Required || URL of your server. For example 'https://server:8080/api/v1'. Use `api/v2` for asynchronous reporting. |
83
132
| launch | Required || Name of launch at creation. |
84
133
| project | Required || The name of the project in which the launches will be created. |
@@ -120,6 +169,13 @@ This is for your convenience if you have a continuous job that runs your tests a
120
169
}
121
170
```
122
171
172
+
## Asynchronous API
173
+
174
+
The client supports an asynchronous reporting (via the ReportPortal asynchronous API).
175
+
If you want the client to report through the asynchronous API, change `v1` to `v2` in the `endpoint` address.
176
+
177
+
**Note:** It is highly recommended to use the `v2` endpoint for reporting, especially for extensive test suites.
178
+
123
179
## Features
124
180
125
181
### Retries
@@ -326,7 +382,7 @@ mergeLaunches();
326
382
```
327
383
328
384
Using a merge operation for huge launches can increase the load on ReportPortal's API.
329
-
See the details and other parameters available for merge operation in [ReportPortal API docs](https://developers.reportportal.io/api-docs/service-api/merge-launches-1).
385
+
See the details and other parameters available for merge operation in [ReportPortal API docs](https://developers.reportportal.io/api-docs/service-api/versions/5.13/merge-launches-old-uuid-2).
330
386
331
387
**Note:** Since the options described require additional effort, the ReportPortal team intends to create a CLI for them to make them easier to use, but with no ETA.
332
388
Progress can be tracked in this [issue](https://github.com/reportportal/client-javascript/issues/218).
0 commit comments