Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @AmsterGet
* @AmsterGet @maria-hambardzumian
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

## [Unreleased]
### Changed
- Replaced the `uniqid` and `uuid` dependencies with the built-in `crypto.randomUUID()` for internal id generation, removing both external packages ([#210](https://github.com/reportportal/agent-js-playwright/issues/210)).
- Bumped the minimum supported Node.js version to 14.17.0 (required by `crypto.randomUUID`).

## [5.5.11] - 2026-05-22
### Added
- Google Analytics improvements.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.5.11
5.5.12-SNAPSHOT
8 changes: 4 additions & 4 deletions __tests__/client-id.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const util = require('util');
const path = require('path');
const { v4: uuidv4 } = require('uuid');
const { randomUUID } = require('crypto');

const testHomeDir = path.join(__dirname, '__tmp__', 'rp-home');
process.env.RP_CLIENT_JS_HOME = testHomeDir;
Expand Down Expand Up @@ -56,7 +56,7 @@ describe('Client ID test suite', () => {

it('getClientId should read client ID from ~/.rp/rp.properties', async () => {
await unlinkFile(clientIdFile);
const clientId = uuidv4(undefined, undefined, 0);
const clientId = randomUUID();
await writeFile(clientIdFile, `client.id=${clientId}\n`, 'utf-8');
expect(await getClientId()).toEqual(clientId);
});
Expand All @@ -66,7 +66,7 @@ describe('Client ID test suite', () => {
'first line',
async () => {
await unlinkFile(clientIdFile);
const clientId = uuidv4(undefined, undefined, 0);
const clientId = randomUUID();
await writeFile(clientIdFile, `client.id=${clientId}\ntest.property=555\n`, 'utf-8');
expect(await getClientId()).toEqual(clientId);
},
Expand All @@ -77,7 +77,7 @@ describe('Client ID test suite', () => {
'first line',
async () => {
await unlinkFile(clientIdFile);
const clientId = uuidv4(undefined, undefined, 0);
const clientId = randomUUID();
await writeFile(clientIdFile, `test.property=555\nclient.id=${clientId}\n`, 'utf-8');
expect(await getClientId()).toEqual(clientId);
},
Expand Down
4 changes: 2 additions & 2 deletions lib/report-portal-client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable quotes,no-console,class-methods-use-this */
const UniqId = require('uniqid');
const { randomUUID } = require('crypto');
const { URLSearchParams } = require('url');
const helpers = require('./helpers');
const RestClient = require('./rest');
Expand Down Expand Up @@ -100,7 +100,7 @@ class RPClient {
}

getUniqId() {
return UniqId();
return randomUUID();
}

getRejectAnswer(tempId, error) {
Expand Down
Loading
Loading