Skip to content

Commit de3b998

Browse files
committed
[C] Bump uuid 2 -> 11
1 parent 51231c0 commit de3b998

File tree

7 files changed

+19
-17
lines changed

7 files changed

+19
-17
lines changed

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"tinycolor2": "^1.6.0",
125125
"tus-js-client": "^4.3.1",
126126
"use-resize-observer": "^9.1.0",
127-
"uuid": "https://registry.npmjs.org/uuid/-/uuid-2.0.2.tgz",
127+
"uuid": "^11.x",
128128
"wavesurfer.js": "^7.9.4"
129129
},
130130
"devDependencies": {

client/src/actions/entityStore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createAction } from "redux-actions";
22
import isString from "lodash/isString";
33
import isObject from "lodash/isObject";
4-
import uuid from "uuid";
4+
import { v1 as uuidv1 } from "uuid";
55

66
export const flush = createAction("ENTITY_STORE_FLUSH", passedMetas => {
77
let metas;
@@ -18,7 +18,7 @@ export const request = createAction(
1818
return { ...options, request: requestConfig, state: 0 };
1919
},
2020
(apiConfig, meta = null) => {
21-
return meta || uuid.v1();
21+
return meta || uuidv1();
2222
}
2323
);
2424
/* eslint-enable no-unused-vars */

client/src/actions/notifications.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { createAction } from "redux-actions";
2-
import uuid from "uuid";
2+
import { v1 as uuidv1 } from "uuid";
33

44
// Add notification that will assign a random ID if one does not exist already
55
export const addNotification = createAction("ADD_NOTIFICATION", subject => {
66
const notification = subject;
77
if (!notification.id) {
8-
notification.id = uuid.v1();
8+
notification.id = uuidv1();
99
}
1010
return notification;
1111
});

client/src/hoc/analytics/hooks/useManifoldAnalytics.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import get from "lodash/get";
33
import CookieHelper from "helpers/cookie/Browser";
44
import config from "config";
55
import ch from "helpers/consoleHelpers";
6-
import uuid from "uuid";
6+
import { v1 as uuidv1 } from "uuid";
77
import { entityStoreActions, currentUserActions } from "actions";
88
import { analyticEventsAPI, requests } from "api";
99
import { useFromStore } from "hooks";
@@ -18,13 +18,13 @@ function manifoldAnalyticsEnabled(settings) {
1818
}
1919

2020
function generateVisitorToken() {
21-
const token = uuid.v1();
21+
const token = uuidv1();
2222
cookie.write("visitorToken", token, { expires: 365 });
2323
return token;
2424
}
2525

2626
function generateVisitToken() {
27-
const token = uuid.v1();
27+
const token = uuidv1();
2828
cookie.write("visitToken", token, { expires: 1 });
2929
return token;
3030
}

client/src/hoc/analytics/withAnalyticsReport.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { formatDuration } from "date-fns/formatDuration";
1010
import { startOfDay } from "date-fns/startOfDay";
1111
import { endOfDay } from "date-fns/endOfDay";
1212
import { sub } from "date-fns/sub";
13-
import uuid from "uuid";
13+
import { v4 as uuidv4 } from "uuid";
1414

1515
const { request } = entityStoreActions;
1616

@@ -23,7 +23,7 @@ export default function withAnalyticsReport(WrappedComponent) {
2323
WrappedComponent
2424
)})`;
2525

26-
const requestUUID = uuid();
26+
const requestUUID = uuidv4();
2727
const requestName = `${requests.beAnalyticsReport}-${requestUUID}`;
2828

2929
class WithAnalyticsReport extends React.PureComponent {

client/src/services/plugin/registry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import uuid from "uuid";
1+
import { v1 as uuidv1 } from "uuid";
22

33
class PluginRegistry {
44
constructor() {
55
this._registry = {};
66
}
77

88
add(component) {
9-
const id = uuid.v1();
9+
const id = uuidv1();
1010
this._registry[id] = component;
1111
return id;
1212
}

client/yarn.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9229,7 +9229,7 @@ __metadata:
92299229
true-case-path: "npm:^2.2.1"
92309230
tus-js-client: "npm:^4.3.1"
92319231
use-resize-observer: "npm:^9.1.0"
9232-
uuid: "https://registry.npmjs.org/uuid/-/uuid-2.0.2.tgz"
9232+
uuid: "npm:^11.x"
92339233
wait-on: "npm:^8.0.3"
92349234
wavesurfer.js: "npm:^7.9.4"
92359235
webpack: "npm:^5.x"
@@ -14287,10 +14287,12 @@ __metadata:
1428714287
languageName: node
1428814288
linkType: hard
1428914289

14290-
"uuid@https://registry.npmjs.org/uuid/-/uuid-2.0.2.tgz":
14291-
version: 2.0.2
14292-
resolution: "uuid@npm:2.0.2"
14293-
checksum: 10c0/a0a40e501fe790e5cdde1c559c06a72b38455b42be81d1b241328fc7f384bbc74e871bca49fd56b813a8bd6a0ac318f1a81e2e8144332e2e35b205f8e32933fb
14290+
"uuid@npm:^11.x":
14291+
version: 11.1.0
14292+
resolution: "uuid@npm:11.1.0"
14293+
bin:
14294+
uuid: dist/esm/bin/uuid
14295+
checksum: 10c0/34aa51b9874ae398c2b799c88a127701408cd581ee89ec3baa53509dd8728cbb25826f2a038f9465f8b7be446f0fbf11558862965b18d21c993684297628d4d3
1429414296
languageName: node
1429514297
linkType: hard
1429614298

0 commit comments

Comments
 (0)