Skip to content

Commit fd48018

Browse files
Merge branch 'develop' into develop
2 parents 051976a + bb24b9f commit fd48018

29 files changed

+5041
-2640
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
22
build
3-
spec/**/*.json
3+
__tests__/**/*.json

.eslintrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@
88
"parser": "@typescript-eslint/parser",
99
"parserOptions": {
1010
"ecmaVersion": 2018,
11-
"sourceType": "module"
11+
"sourceType": "module",
12+
"project": "./tsconfig.eslint.json"
1213
},
1314
"globals": {
1415
"expectAsync": true
1516
},
1617
"env": {
1718
"node": true,
1819
"es6": true,
19-
"jasmine": true
20+
"jest": true
2021
},
2122
"rules": {
22-
"indent": ["error", 2],
23-
"max-len": ["error", 120],
2423
"valid-jsdoc": ["error", { "requireReturn": false }],
2524
"consistent-return": 0,
2625
"@typescript-eslint/no-plusplus": 0,
@@ -35,6 +34,7 @@
3534
"@typescript-eslint/dot-notation": 0,
3635
"@typescript-eslint/ban-ts-comment": 0,
3736
"@typescript-eslint/no-var-requires": 0,
37+
"@typescript-eslint/no-floating-promises": 2,
3838
"max-classes-per-file": 0
3939
}
4040
}

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @AmsterGet @Bam6ycha
1+
* @AmsterGet

.github/workflows/CI-pipeline.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 EPAM Systems
1+
# Copyright 2024 EPAM Systems
22
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
@@ -25,23 +25,26 @@ on:
2525
branches:
2626
- develop
2727
- master
28+
paths-ignore:
29+
- README.md
30+
- CHANGELOG.md
2831

2932
jobs:
3033
test:
3134
runs-on: ubuntu-latest
3235
strategy:
3336
matrix:
34-
node: [10, 12, 14, 16, 18, 20]
37+
node: [14, 16, 18, 20, 22]
3538
steps:
3639
- name: Checkout repository
37-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
3841

3942
- name: Setup Node.js
40-
uses: actions/setup-node@v3
43+
uses: actions/setup-node@v4
4144
with:
4245
node-version: ${{ matrix.node }}
4346

44-
- name: Install of node dependencies
47+
- name: Install dependencies
4548
run: npm install
4649

4750
- name: Build the source code
@@ -50,8 +53,5 @@ jobs:
5053
- name: Run lint
5154
run: npm run lint
5255

53-
- name: Run tests
54-
run: npm test
55-
56-
- name: Check coverage
56+
- name: Run tests and check coverage
5757
run: npm run test:coverage

.github/workflows/publish.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020 EPAM Systems
1+
# Copyright 2024 EPAM Systems
22
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
@@ -22,32 +22,30 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- name: Set up Node.js
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: 18
30-
- name: Install of node dependencies
29+
node-version: 20
30+
- name: Install dependencies
3131
run: npm install
3232
- name: Run lint
3333
run: npm run lint
34-
- name: Run tests
35-
run: npm test
36-
- name: Check coverage
34+
- name: Run tests and check coverage
3735
run: npm run test:coverage
3836

3937
publish-to-npm-and-gpr:
4038
needs: build
4139
runs-on: ubuntu-latest
4240
steps:
4341
- name: Checkout repository
44-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4543
- name: Set up Node.js
46-
uses: actions/setup-node@v3
44+
uses: actions/setup-node@v4
4745
with:
48-
node-version: 18
46+
node-version: 20
4947
registry-url: 'https://registry.npmjs.org'
50-
- name: Install of node dependencies
48+
- name: Install dependencies
5149
run: npm install
5250
- name: Publish to NPM
5351
run: |
@@ -57,9 +55,9 @@ jobs:
5755
env:
5856
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
5957
- name: Set up Node.js
60-
uses: actions/setup-node@v3
58+
uses: actions/setup-node@v4
6159
with:
62-
node-version: 18
60+
node-version: 20
6361
registry-url: 'https://npm.pkg.github.com'
6462
scope: '@reportportal'
6563
- name: Publish to GPR
@@ -69,4 +67,4 @@ jobs:
6967
npm config list
7068
npm publish
7169
env:
72-
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}
70+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
releaseVersion: ${{ steps.exposeVersion.outputs.releaseVersion }}
3434
steps:
3535
- name: Checkout repository
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3737
- name: Read version
3838
id: readVersion
3939
run: |
@@ -78,11 +78,11 @@ jobs:
7878
versionInfo: ${{ steps.readChangelogEntry.outputs.log_entry }}
7979
steps:
8080
- name: Checkout repository
81-
uses: actions/checkout@v2
81+
uses: actions/checkout@v4
8282
- name: Setup NodeJS
83-
uses: actions/setup-node@v2
83+
uses: actions/setup-node@v4
8484
with:
85-
node-version: '12'
85+
node-version: '12'
8686
- name: Configure git
8787
run: |
8888
git config --global user.email "reportportal.io"
@@ -127,8 +127,10 @@ jobs:
127127
git checkout develop
128128
git merge master -Xtheirs --allow-unrelated-histories
129129
echo "${{ steps.bumpSnapshotVersion.outputs.next-version }}-SNAPSHOT" > ${{ env.versionFileName }}
130+
echo "patch" > ${{ env.versionFragmentFileName }}
130131
git status
131132
git add ${{ env.versionFileName }}
133+
git add ${{ env.versionFragmentFileName }}
132134
git commit -m "${{ needs.calculate-version.outputs.releaseVersion }} -> ${{ steps.bumpSnapshotVersion.outputs.next-version }}-SNAPSHOT"
133135
git push origin develop
134136
@@ -137,12 +139,12 @@ jobs:
137139
runs-on: ubuntu-latest
138140
steps:
139141
- name: Checkout repository
140-
uses: actions/checkout@v2
142+
uses: actions/checkout@v4
141143
- name: Create Release
142144
id: createRelease
143145
uses: actions/create-release@v1
144146
env:
145-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
147+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146148
with:
147149
tag_name: v${{ needs.calculate-version.outputs.releaseVersion }}
148150
release_name: Release v${{ needs.calculate-version.outputs.releaseVersion }}
@@ -153,5 +155,5 @@ jobs:
153155
if: success()
154156
uses: peter-evans/repository-dispatch@v1
155157
with:
156-
token: ${{ secrets.GH_TOKEN }}
157-
event-type: version-released
158+
token: ${{ secrets.GITHUB_TOKEN }}
159+
event-type: version-released

CHANGELOG.md

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,76 @@
11

2+
## [5.4.0] - 2025-03-27
3+
### Changed
4+
- Revert time format back to milliseconds (based on [#217](https://github.com/reportportal/client-javascript/issues/217#issuecomment-2659843471)).
5+
This is also fixing the issue with agent installation on ARM processors.
6+
### Security
7+
- Updated versions of vulnerable packages (axios).
8+
9+
## [5.3.1] - 2025-01-31
10+
### Fixed
11+
- Updated the `checkConnect` method implementation to utilize the `GET launches` API endpoint, ensuring compatibility with both old and new API versions.
12+
13+
## [5.3.0] - 2024-09-23
14+
### Changed
15+
- The client now expects reporting the time for launches, test items and logs with microsecond precision in the ISO string format.
16+
Thus, the `helpers.now` function is adjusted accordingly. Details about [supported](./README.md#time-format) formats.
17+
For logs, microsecond precision is available on the UI from ReportPortal version 24.2.
18+
### Security
19+
- Updated versions of vulnerable packages (micromatch).
20+
21+
## [5.2.0] - 2024-09-17
22+
### Changed
23+
- **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.
24+
- The client now creates an instance of the `axios` HTTP client in the constructor.
25+
- The `HOST` HTTP header is added to all requests as it was skipped by the HTTP client.
26+
### Fixed
27+
- Allow using `restClientConfig` in `checkConnect()` method. Thanks to [stevez](https://github.com/stevez).
28+
### Security
29+
- Updated versions of vulnerable packages (braces).
30+
31+
## [5.1.4] - 2024-05-22
32+
### Fixed
33+
- Use correct launch search URL based on config mode while merging launches. Resolves [#200](https://github.com/reportportal/client-javascript/issues/200). Thanks to [hoangthanhtri](https://github.com/hoangthanhtri).
34+
- Print launch UUID after merging launches. Resolves [#202](https://github.com/reportportal/client-javascript/issues/202). Thanks to [hoangthanhtri](https://github.com/hoangthanhtri).
35+
36+
## [5.1.3] - 2024-04-11
37+
### Added
38+
- Output launch UUID to file and ENV variable, thanks to [artsiomBandarenka](https://github.com/artsiomBandarenka). Addressed [#195](https://github.com/reportportal/client-javascript/issues/195), [#50](https://github.com/reportportal/agent-js-webdriverio/issues/50).
39+
### Security
40+
- Updated versions of vulnerable packages (follow-redirects).
41+
42+
## [5.1.2] - 2024-02-20
43+
### Fixed
44+
- Execution sequence for retried tests [#134](https://github.com/reportportal/agent-js-playwright/issues/134).
45+
46+
## [5.1.1] - 2024-01-23
47+
### Added
48+
- Debug logs for RestClient.
49+
50+
## [5.1.0] - 2024-01-19
51+
### Changed
52+
- **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.
53+
### Security
54+
- Updated versions of vulnerable packages (axios, follow-redirects).
55+
### Deprecated
56+
- Node.js 12 usage. This minor version is the latest that supports Node.js 12.
57+
58+
## [5.0.15] - 2023-11-20
59+
### Added
60+
- Logging link to the launch on its finish.
61+
### Deprecated
62+
- Node.js 10 usage. This version is the latest that supports Node.js 10.
63+
64+
## [5.0.14] - 2023-10-05
65+
### Added
66+
- `Promise.allSettled` polyfill to support NodeJS 10.
67+
### Fixed
68+
- Reporting is down on error with collect request on reporting start.
69+
- Can not read property `realId` of undefined during reporting, resolves [#99](https://github.com/reportportal/agent-js-playwright/issues/99).
70+
271
## [5.0.13] - 2023-08-28
372
### Added
4-
- `launchUuidPrint` and `launchUuidPrintOutput` configuration options to ease integration with CI tools, by @HardNorth
73+
- `launchUuidPrint` and `launchUuidPrintOutput` configuration options to ease integration with CI tools, by @HardNorth.
574

675
## [5.0.12] - 2023-06-19
776
### Changed

0 commit comments

Comments
 (0)