Update dependency uuid to v9 (#159)

* Update dependency uuid to v9

* Update imports

* Fix remaining imports

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Lautzenheiser <lautzd@gmail.com>
This commit is contained in:
renovate[bot] 2022-12-02 07:54:07 -05:00 committed by GitHub
parent 11a0b37d0f
commit cd1cf39280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 17 additions and 17 deletions

View File

@ -135,7 +135,7 @@
"uploadcare-widget-tab-effects": "1.6.0", "uploadcare-widget-tab-effects": "1.6.0",
"url": "0.11.0", "url": "0.11.0",
"url-join": "5.0.0", "url-join": "5.0.0",
"uuid": "3.4.0", "uuid": "9.0.0",
"validate-color": "2.2.1", "validate-color": "2.2.1",
"vfile": "5.3.6", "vfile": "5.3.6",
"vfile-message": "3.1.3", "vfile-message": "3.1.3",
@ -183,7 +183,7 @@
"@types/react-window": "1.8.5", "@types/react-window": "1.8.5",
"@types/styled-components": "5.1.26", "@types/styled-components": "5.1.26",
"@types/url-join": "4.0.1", "@types/url-join": "4.0.1",
"@types/uuid": "3.4.10", "@types/uuid": "9.0.0",
"@typescript-eslint/eslint-plugin": "5.45.0", "@typescript-eslint/eslint-plugin": "5.45.0",
"@typescript-eslint/parser": "5.45.0", "@typescript-eslint/parser": "5.45.0",
"axios": "1.2.0", "axios": "1.2.0",

View File

@ -3,7 +3,7 @@ import isError from 'lodash/isError';
import take from 'lodash/take'; import take from 'lodash/take';
import unset from 'lodash/unset'; import unset from 'lodash/unset';
import { extname } from 'path'; import { extname } from 'path';
import uuid from 'uuid/v4'; import { v4 as uuid } from 'uuid';
import { basename, Cursor, CURSOR_COMPATIBILITY_SYMBOL } from '@staticcms/core/lib/util'; import { basename, Cursor, CURSOR_COMPATIBILITY_SYMBOL } from '@staticcms/core/lib/util';
import AuthenticationPage from './AuthenticationPage'; import AuthenticationPage from './AuthenticationPage';

View File

@ -4,7 +4,7 @@ import uniqueItemProperties from 'ajv-keywords/dist/keywords/uniqueItemPropertie
import instanceOf from 'ajv-keywords/dist/keywords/instanceof'; import instanceOf from 'ajv-keywords/dist/keywords/instanceof';
import prohibited from 'ajv-keywords/dist/keywords/prohibited'; import prohibited from 'ajv-keywords/dist/keywords/prohibited';
import ajvErrors from 'ajv-errors'; import ajvErrors from 'ajv-errors';
import uuid from 'uuid/v4'; import { v4 as uuid } from 'uuid';
import { formatExtensions, frontmatterFormats, extensionFormatters } from '../formats/formats'; import { formatExtensions, frontmatterFormats, extensionFormatters } from '../formats/formats';
import { getWidgets } from '../lib/registry'; import { getWidgets } from '../lib/registry';

View File

@ -1,4 +1,4 @@
import uuid from 'uuid/v4'; import { v4 as uuid } from 'uuid';
export function createNonce() { export function createNonce() {
const nonce = uuid(); const nonce = uuid();

View File

@ -1,5 +1,5 @@
import { useCallback, useEffect, useMemo } from 'react'; import { useCallback, useEffect, useMemo } from 'react';
import uuid from 'uuid'; import { v4 as uuid } from 'uuid';
import { selectMediaPath } from '@staticcms/core/reducers/mediaLibrary'; import { selectMediaPath } from '@staticcms/core/reducers/mediaLibrary';
import { useAppDispatch, useAppSelector } from '@staticcms/core/store/hooks'; import { useAppDispatch, useAppSelector } from '@staticcms/core/store/hooks';

View File

@ -2,7 +2,7 @@ import { styled } from '@mui/material/styles';
import { loadLanguage } from '@uiw/codemirror-extensions-langs'; import { loadLanguage } from '@uiw/codemirror-extensions-langs';
import CodeMirror from '@uiw/react-codemirror'; import CodeMirror from '@uiw/react-codemirror';
import React, { useCallback, useMemo, useState } from 'react'; import React, { useCallback, useMemo, useState } from 'react';
import uuid from 'uuid/v4'; import { v4 as uuid } from 'uuid';
import ObjectWidgetTopBar from '@staticcms/core/components/UI/ObjectWidgetTopBar'; import ObjectWidgetTopBar from '@staticcms/core/components/UI/ObjectWidgetTopBar';
import Outline from '@staticcms/core/components/UI/Outline'; import Outline from '@staticcms/core/components/UI/Outline';

View File

@ -6,7 +6,7 @@ import { styled } from '@mui/material/styles';
import { arrayMoveImmutable } from 'array-move'; import { arrayMoveImmutable } from 'array-move';
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react'; import React, { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { SortableContainer, SortableElement } from 'react-sortable-hoc'; import { SortableContainer, SortableElement } from 'react-sortable-hoc';
import uuid from 'uuid/v4'; import { v4 as uuid } from 'uuid';
import ObjectWidgetTopBar from '@staticcms/core/components/UI/ObjectWidgetTopBar'; import ObjectWidgetTopBar from '@staticcms/core/components/UI/ObjectWidgetTopBar';
import Outline from '@staticcms/core/components/UI/Outline'; import Outline from '@staticcms/core/components/UI/Outline';

View File

@ -3,7 +3,7 @@ import { arrayMoveImmutable } from 'array-move';
import isEmpty from 'lodash/isEmpty'; import isEmpty from 'lodash/isEmpty';
import React, { useCallback, useMemo, useState } from 'react'; import React, { useCallback, useMemo, useState } from 'react';
import { SortableContainer } from 'react-sortable-hoc'; import { SortableContainer } from 'react-sortable-hoc';
import uuid from 'uuid'; import { v4 as uuid } from 'uuid';
import FieldLabel from '@staticcms/core/components/UI/FieldLabel'; import FieldLabel from '@staticcms/core/components/UI/FieldLabel';
import ObjectWidgetTopBar from '@staticcms/core/components/UI/ObjectWidgetTopBar'; import ObjectWidgetTopBar from '@staticcms/core/components/UI/ObjectWidgetTopBar';

View File

@ -2946,10 +2946,10 @@
resolved "https://registry.yarnpkg.com/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz#b6725d5f4af24ace33b36fafd295136e75509f43" resolved "https://registry.yarnpkg.com/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz#b6725d5f4af24ace33b36fafd295136e75509f43"
integrity sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA== integrity sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==
"@types/uuid@3.4.10": "@types/uuid@9.0.0":
version "3.4.10" version "9.0.0"
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-3.4.10.tgz#637d3c8431f112edf6728ac9bdfadfe029540f48" resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.0.tgz#53ef263e5239728b56096b0a869595135b7952d2"
integrity sha512-BgeaZuElf7DEYZhWYDTc/XcLZXdVgFkVSTa13BqKvbnmUrxr3TJFKofUxCtDO9UQOdhnV+HPOESdHiHKZOJV1A== integrity sha512-kr90f+ERiQtKWMz5rP32ltJ/BtULDI5RVO0uavn1HQUOwjx0R1h0rnDYNL0CepF1zL5bSY6FISAfd9tOdDhU5Q==
"@types/ws@^8.5.1": "@types/ws@^8.5.1":
version "8.5.3" version "8.5.3"
@ -11655,10 +11655,10 @@ utils-merge@1.0.1:
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==
uuid@3.4.0: uuid@9.0.0:
version "3.4.0" version "9.0.0"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== integrity sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==
uuid@^8.3.2: uuid@^8.3.2:
version "8.3.2" version "8.3.2"