fix(all): update to uuid@7
MODIFY
packages/core/package.json
packages/core/package.json
"dependencies": {
"@types/json-schema": "^7.0.3",
"@types/qs": "^6.9.0",
- "@types/uuid": "^3.4.7",
+ "@types/uuid": "^7.0.0",
"chalk": "^3.0.0",
"file-type": "^8.0.0",
"mime": "^2.4.4",
"path-to-regexp": "^6.1.0",
"qs": "^6.9.1",
- "uuid": "^3.4.0"
+ "uuid": "^7.0.1"
},
"devDependencies": {
"@types/file-type": "^5.2.1",

MODIFY
packages/core/src/+internal/utils/string.util.ts
packages/core/src/+internal/utils/string.util.ts
-import * as uuid from 'uuid';
+import { v4 as uuid } from 'uuid';
import { flow } from 'fp-ts/lib/function';
import { fromNullable, getOrElse } from 'fp-ts/lib/Option';
@@ -24,4 +24,4 @@ export const stringify = (value: any): string =>
? (value.displayName || value.name)
: JSON.stringify(value);
-export const createUuid = () => uuid.v4();
+export const createUuid = () => uuid();

MODIFY
packages/core/src/context/context.token.factory.ts
packages/core/src/context/context.token.factory.ts
-import * as uuid from 'uuid';
+import { createUuid } from '../+internal/utils';
export class ContextToken<T = any> {
- _id = uuid();
+ _id = createUuid();
_T!: T;
constructor(public name?: string) {}
}

MODIFY
packages/messaging/src/util/messaging.test.util.ts
packages/messaging/src/util/messaging.test.util.ts
-import * as uuid from 'uuid/v4';
+import { v4 as uuid } from 'uuid';
import { createContext, register, bindTo, LoggerToken, mockLogger } from '@marblejs/core';
import { flow } from 'fp-ts/lib/function';
import { createMicroservice } from '../server/messaging.server';

MODIFY
yarn.lock
yarn.lock
dependencies:
"@types/node" "*"
-"@types/uuid@^3.4.7":
- version "3.4.7"
- resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-3.4.7.tgz#51d42247473bc00e38cc8dfaf70d936842a36c03"
- integrity sha512-C2j2FWgQkF1ru12SjZJyMaTPxs/f6n90+5G5qNakBxKXjTBc/YTSelHh4Pz1HUDwxFXD9WvpQhOGCDC+/Y4mIQ==
+"@types/uuid@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-7.0.0.tgz#9f6993ccc8210efa90bda7e1afabbb06a9f860cd"
+ integrity sha512-RiX1I0lK9WFLFqy2xOxke396f0wKIzk5sAll0tL4J4XDYJXURI7JOs96XQb3nP+2gEpQ/LutBb66jgiT5oQshQ==
"@types/ws@~6.0.1":
version "6.0.1"
@@ -8125,10 +8125,10 @@ uuid@^3.0.1, uuid@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131"
-uuid@^3.4.0:
- version "3.4.0"
- resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
- integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
+uuid@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.1.tgz#95ed6ff3d8c881cbf85f0f05cc3915ef994818ef"
+ integrity sha512-yqjRXZzSJm9Dbl84H2VDHpM3zMjzSJQ+hn6C4zqd5ilW+7P4ZmLEEqwho9LjP+tGuZlF4xrHQXT0h9QZUS/pWA==
v8-compile-cache@^2.0.3:
version "2.1.0"

fix(all): update to uuid@7