@dr.pogodin/react-utils 1.43.3 → 1.43.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/setup.js +3 -3
- package/build/development/server/renderer.js +3 -3
- package/build/development/server/renderer.js.map +1 -1
- package/build/development/shared/utils/webpack.js.map +1 -1
- package/build/production/server/renderer.js +3 -3
- package/build/production/server/renderer.js.map +1 -1
- package/build/production/shared/utils/webpack.js.map +1 -1
- package/build/production/web.bundle.js.map +1 -1
- package/build/types-code/shared/utils/webpack.d.ts +1 -1
- package/config/eslint/default.mjs +0 -1
- package/package.json +11 -11
- package/src/server/renderer.tsx +3 -3
- package/src/shared/utils/webpack.ts +3 -1
- package/types.d.ts +8 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.43.
|
|
2
|
+
"version": "1.43.5",
|
|
3
3
|
"bin": {
|
|
4
4
|
"react-utils-build": "bin/build.js",
|
|
5
5
|
"react-utils-setup": "bin/setup.js"
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@babel/runtime": "^7.27.0",
|
|
12
|
-
"@dr.pogodin/babel-plugin-react-css-modules": "^6.13.
|
|
13
|
-
"@dr.pogodin/csurf": "^1.14.
|
|
12
|
+
"@dr.pogodin/babel-plugin-react-css-modules": "^6.13.5",
|
|
13
|
+
"@dr.pogodin/csurf": "^1.14.2",
|
|
14
14
|
"@dr.pogodin/js-utils": "^0.0.17",
|
|
15
15
|
"@dr.pogodin/react-global-state": "^0.18.1",
|
|
16
16
|
"@dr.pogodin/react-helmet": "^3.0.1",
|
|
17
17
|
"@dr.pogodin/react-themes": "^1.8.0",
|
|
18
18
|
"@jest/environment": "^29.7.0",
|
|
19
|
-
"axios": "^1.
|
|
19
|
+
"axios": "^1.9.0",
|
|
20
20
|
"commander": "^13.1.0",
|
|
21
21
|
"compression": "^1.8.0",
|
|
22
22
|
"config": "^3.3.12",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"raf": "^3.4.1",
|
|
36
36
|
"react": "^19.1.0",
|
|
37
37
|
"react-dom": "^19.1.0",
|
|
38
|
-
"react-router": "^7.5.
|
|
38
|
+
"react-router": "^7.5.3",
|
|
39
39
|
"request-ip": "^3.3.0",
|
|
40
40
|
"rimraf": "^6.0.0",
|
|
41
41
|
"serialize-javascript": "^6.0.2",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@dr.pogodin/babel-plugin-transform-assets": "^1.2.4",
|
|
58
58
|
"@dr.pogodin/babel-preset-svgr": "^1.9.0",
|
|
59
59
|
"@dr.pogodin/eslint-configs": "^0.0.3",
|
|
60
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.
|
|
60
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.0",
|
|
61
61
|
"@testing-library/dom": "^10.4.0",
|
|
62
62
|
"@testing-library/react": "^16.3.0",
|
|
63
63
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"core-js": "^3.41.0",
|
|
89
89
|
"css-loader": "^7.1.2",
|
|
90
90
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
91
|
-
"eslint": "
|
|
91
|
+
"eslint": "9.25.0",
|
|
92
92
|
"identity-obj-proxy": "^3.0.0",
|
|
93
93
|
"jest": "^29.7.0",
|
|
94
94
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -103,18 +103,18 @@
|
|
|
103
103
|
"react-refresh": "^0.17.0",
|
|
104
104
|
"regenerator-runtime": "^0.14.1",
|
|
105
105
|
"resolve-url-loader": "^5.0.0",
|
|
106
|
-
"sass": "^1.
|
|
106
|
+
"sass": "^1.87.0",
|
|
107
107
|
"sass-loader": "^16.0.5",
|
|
108
108
|
"sitemap": "^8.0.0",
|
|
109
109
|
"source-map-loader": "^5.0.0",
|
|
110
|
-
"stylelint": "^16.
|
|
110
|
+
"stylelint": "^16.19.1",
|
|
111
111
|
"stylelint-config-standard-scss": "^14.0.0",
|
|
112
112
|
"supertest": "^7.1.0",
|
|
113
|
-
"tsc-alias": "
|
|
113
|
+
"tsc-alias": "1.8.13",
|
|
114
114
|
"tstyche": "^3.5.0",
|
|
115
115
|
"typed-scss-modules": "^8.1.1",
|
|
116
116
|
"typescript": "^5.8.3",
|
|
117
|
-
"webpack": "^5.99.
|
|
117
|
+
"webpack": "^5.99.7",
|
|
118
118
|
"webpack-dev-middleware": "^7.4.2",
|
|
119
119
|
"webpack-hot-middleware": "^2.26.1",
|
|
120
120
|
"webpack-merge": "^6.0.1",
|
package/src/server/renderer.tsx
CHANGED
|
@@ -567,11 +567,11 @@ export default function factory(
|
|
|
567
567
|
<html lang="en">
|
|
568
568
|
<head>
|
|
569
569
|
${grouppedExtraScripts[SCRIPT_LOCATIONS.HEAD_OPEN]}
|
|
570
|
-
${helmet
|
|
571
|
-
${helmet
|
|
570
|
+
${helmet?.title.toString() ?? ''}
|
|
571
|
+
${helmet?.meta.toString() ?? ''}
|
|
572
572
|
<meta name="theme-color" content="#FFFFFF">
|
|
573
573
|
${manifestLink}
|
|
574
|
-
${styleChunkString}
|
|
574
|
+
${helmet?.link.toString() ?? ''}${styleChunkString}
|
|
575
575
|
${faviconLink}
|
|
576
576
|
<meta charset="utf-8">
|
|
577
577
|
<meta
|
|
@@ -2,7 +2,9 @@ import type PathT from 'path';
|
|
|
2
2
|
|
|
3
3
|
import { IS_CLIENT_SIDE } from './isomorphy';
|
|
4
4
|
|
|
5
|
-
type RequireWeakResT<T> = T extends { default: infer D }
|
|
5
|
+
type RequireWeakResT<T> = T extends { default: infer D }
|
|
6
|
+
? (D extends null | undefined ? T : D & Omit<T, 'default'>)
|
|
7
|
+
: T;
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Requires the specified module without including it into the bundle during
|
package/types.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
/* eslint-disable no-
|
|
1
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
2
|
|
|
3
|
+
// TODO: Double-check that let does not work?
|
|
4
|
+
// eslint-disable-next-line no-var
|
|
3
5
|
declare var IS_REACT_ACT_ENVIRONMENT: boolean | undefined;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line no-var
|
|
4
8
|
declare var REACT_UTILS_FORCE_CLIENT_SIDE: boolean | undefined;
|
|
5
9
|
|
|
6
10
|
declare module '@babel/register/experimental-worker' {
|
|
@@ -30,12 +34,14 @@ declare module 'node-forge/lib/forge' {
|
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
declare module '*.png' {
|
|
33
|
-
|
|
37
|
+
const path: string;
|
|
38
|
+
export default path;
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
declare namespace React {
|
|
37
42
|
// This allows all JSX elements to have additional "styleName" attribute,
|
|
38
43
|
// handled by "@dr.pogodin/babel-plugin-react-css-modules".
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
39
45
|
interface Attributes {
|
|
40
46
|
styleName?: string;
|
|
41
47
|
}
|