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
22 changes: 0 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@commitlint/config-conventional": "^19.7.1",
"@stylistic/eslint-plugin": "^3.1.0",
"@types/jest": "^29.5.14",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.24.0",
"barrelsby": "^2.8.1",
Expand All @@ -66,8 +65,5 @@
"ts-jest": "^29.2.5",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.1"
},
"dependencies": {
"uuid": "^11.0.5"
}
}
3 changes: 1 addition & 2 deletions src/engine/executionEngine.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { v4 as uuidv4 } from 'uuid';

import { TraceableEngine } from './traceableEngine';
import { EngineTrace } from '../common/models/engineTrace.model';
Expand Down Expand Up @@ -37,7 +36,7 @@ export class ExecutionEngine<
.toISOString()
.replace(/[-:.Z]/g, '')
.replace('T', '_'),
uuidv4()
crypto.randomUUID()
].join('_');

return this;
Expand Down
6 changes: 2 additions & 4 deletions src/engine/traceableEngine.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { AsyncLocalStorage } from 'async_hooks';

import { v4 as uuidv4 } from 'uuid';

import { EngineNodeData, EngineNodeTrace, isEngineNodeTrace } from '../common/models/engineNodeData.model';
import { EngineEdge, EngineNode, EngineTrace } from '../common/models/engineTrace.model';
import { DEFAULT_TRACE_CONFIG, TraceOptions } from '../common/models/engineTraceOptions.model';
Expand Down Expand Up @@ -154,7 +152,7 @@ export class TraceableEngine {
inputs: Array<unknown> = [],
options: TraceOptions<Array<any>, O> | TraceOptions<Array<any>, O>['trace'] = {
trace: {
id: [blockFunction.name ? blockFunction.name.replace('bound ', '') : 'function', new Date()?.getTime(), uuidv4()]?.join('_'),
id: [blockFunction.name ? blockFunction.name.replace('bound ', '') : 'function', new Date()?.getTime(), crypto.randomUUID()]?.join('_'),
label: blockFunction.name ? blockFunction.name.replace('bound ', '') : 'function'
},
config: DEFAULT_TRACE_CONFIG
Expand All @@ -176,7 +174,7 @@ export class TraceableEngine {
id: [
blockFunction.name ? blockFunction.name.replace('bound ', '') : 'function',
executionTimer?.getStartDate()?.getTime(),
uuidv4()
crypto.randomUUID()
]?.join('_'),
label: [
(this.nodes?.length ?? 0) + 1,
Expand Down
3 changes: 1 addition & 2 deletions src/trace/trace.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { v4 as uuidv4 } from 'uuid';

import { FunctionMetadata } from '../common/models/executionFunction.model';
import { ExecutionTrace } from '../common/models/executionTrace.model';
Expand Down Expand Up @@ -64,7 +63,7 @@ export function executionTrace<O>(
errorStrategy: 'throw'
}
): Promise<ExecutionTrace<Array<unknown>, Awaited<O>>> | ExecutionTrace<Array<unknown>, O> {
const id = uuidv4();
const id = crypto.randomUUID();
const executionTimer = new ExecutionTimer(id);
executionTimer?.start();
const executionTrace: ExecutionTrace<Array<unknown>, O> = { id, inputs, startTime: executionTimer.getStartDate() };
Expand Down
15 changes: 5 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -955,11 +955,6 @@
resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz"
integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==

"@types/uuid@^10.0.0":
version "10.0.0"
resolved "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz"
integrity sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==

"@types/yargs-parser@*":
version "21.0.3"
resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz"
Expand Down Expand Up @@ -2291,6 +2286,11 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==

fsevents@^2.3.2:
version "2.3.3"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz"
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==

function-bind@^1.1.2:
version "1.1.2"
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
Expand Down Expand Up @@ -4549,11 +4549,6 @@ uri-js@^4.2.2:
dependencies:
punycode "^2.1.0"

uuid@^11.0.5:
version "11.0.5"
resolved "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz"
integrity sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==

v8-to-istanbul@^9.0.1:
version "9.3.0"
resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz"
Expand Down
Loading