Skip to content

Commit c8f7f8e

Browse files
committed
[#476] v1.51.3
1 parent ea35d07 commit c8f7f8e

10 files changed

Lines changed: 110 additions & 182 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.14.1
1+
24.15.0

__mocks__/uuid/index.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

config/jest/default.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const modulesToTransform = [
99
'@dr.pogodin/react-global-state',
1010
'@dr.pogodin/react-utils',
1111
'lodash-es',
12-
'uuid',
1312
];
1413

1514
module.exports = {

config/jest/setup.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { subtle } from 'node:crypto';
55
// eslint-disable-next-line import/no-unassigned-import
66
import 'raf/polyfill';
77

8+
import { getMockUuid } from 'utils/jest';
9+
810
// TODO: This is a temporary polyfill necessary for react-router,
911
// as JSDom does not provide TextEncoder, see:
1012
// https://github.com/remix-run/react-router/issues/12363
@@ -19,3 +21,6 @@ if (typeof window !== 'undefined') {
1921
window.crypto.subtle = subtle;
2022
window.isSecureContext = true;
2123
}
24+
25+
let state = 0;
26+
globalThis.crypto.randomUUID = () => getMockUuid(++state);

docs/package-lock.json

Lines changed: 15 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@docusaurus/faster": "3.10.0",
2020
"@docusaurus/preset-classic": "3.10.0",
2121
"@docusaurus/theme-common": "3.10.0",
22-
"@dr.pogodin/react-utils": "file:../dr.pogodin-react-utils-1.51.2.tgz",
22+
"@dr.pogodin/react-utils": "file:../dr.pogodin-react-utils-1.51.3.tgz",
2323
"@mdx-js/react": "^3.1.1",
2424
"file-loader": "^6.2.0",
2525
"prism-react-renderer": "^2.4.1",
@@ -34,7 +34,7 @@
3434
"@docusaurus/tsconfig": "3.10.0",
3535
"@docusaurus/types": "3.10.0",
3636
"@types/react": "^19.2.14",
37-
"typescript": "~6.0.2"
37+
"typescript": "~6.0.3"
3838
},
3939
"browserslist": {
4040
"production": [

0 commit comments

Comments
 (0)