@dr.pogodin/react-utils 1.44.4 → 1.44.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.
|
@@ -86,7 +86,7 @@ export type OptionsT = {
|
|
|
86
86
|
* provided the Webpack config factory will use it to gererate `sitemap.xml`
|
|
87
87
|
* file in the output folder, and then serve it from the app root.
|
|
88
88
|
* @return The generated config will opt to:
|
|
89
|
-
* - Bundle the font assets (EOF, OTF,
|
|
89
|
+
* - Bundle the font assets (EOF, OTF, TTF, WOFF, WOFF2 files from
|
|
90
90
|
* the `src/assets/fonts` folder of your source code will be bundled
|
|
91
91
|
* and output into the `[PUBLIC_PATH]/fonts` folder);
|
|
92
92
|
* - Bundle image assets (GIF, JPEG, JPG, PNG files from any folder of
|
|
@@ -77,7 +77,7 @@ const utils_1 = require("@dr.pogodin/babel-plugin-react-css-modules/utils");
|
|
|
77
77
|
* provided the Webpack config factory will use it to gererate `sitemap.xml`
|
|
78
78
|
* file in the output folder, and then serve it from the app root.
|
|
79
79
|
* @return The generated config will opt to:
|
|
80
|
-
* - Bundle the font assets (EOF, OTF,
|
|
80
|
+
* - Bundle the font assets (EOF, OTF, TTF, WOFF, WOFF2 files from
|
|
81
81
|
* the `src/assets/fonts` folder of your source code will be bundled
|
|
82
82
|
* and output into the `[PUBLIC_PATH]/fonts` folder);
|
|
83
83
|
* - Bundle image assets (GIF, JPEG, JPG, PNG files from any folder of
|
|
@@ -218,14 +218,10 @@ function configFactory(ops) {
|
|
|
218
218
|
module: {
|
|
219
219
|
rules: [{
|
|
220
220
|
/* Loads font resources from "src/assets/fonts" folder. */
|
|
221
|
-
test: /\.(eot|otf|
|
|
221
|
+
test: /\.(eot|otf|ttf|woff2?)$/,
|
|
222
222
|
generator: {
|
|
223
223
|
filename: 'fonts/[contenthash][ext][query]',
|
|
224
224
|
},
|
|
225
|
-
include: [
|
|
226
|
-
/node_modules/,
|
|
227
|
-
/src[/\\]assets[/\\]fonts/,
|
|
228
|
-
],
|
|
229
225
|
type: 'asset/resource',
|
|
230
226
|
}, {
|
|
231
227
|
// Aggregates source maps from dependencies.
|
|
@@ -52,7 +52,7 @@ function configFactory(ops) {
|
|
|
52
52
|
* with such configuration it just rewrites those URLs to point to
|
|
53
53
|
* the original location of the font assets in
|
|
54
54
|
* the library being build. */
|
|
55
|
-
test: /\.(eot|otf|
|
|
55
|
+
test: /\.(eot|otf|ttf|woff2?)$/,
|
|
56
56
|
generator: {
|
|
57
57
|
// TODO: This comes from the older config version which relied on
|
|
58
58
|
// file-loader. It might require some correction to correctly join
|
|
@@ -60,10 +60,6 @@ function configFactory(ops) {
|
|
|
60
60
|
filename: '../shared/[path][name][ext]',
|
|
61
61
|
publicPath: `${ops.library}/build/shared`,
|
|
62
62
|
},
|
|
63
|
-
include: [
|
|
64
|
-
/node_modules/,
|
|
65
|
-
/src[/\\]assets[/\\]fonts/,
|
|
66
|
-
],
|
|
67
63
|
type: 'asset/resource',
|
|
68
64
|
}, {
|
|
69
65
|
// Aggregates source maps from dependencies.
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.44.
|
|
2
|
+
"version": "1.44.5",
|
|
3
3
|
"bin": {
|
|
4
4
|
"react-utils-build": "bin/build.js",
|
|
5
5
|
"react-utils-setup": "bin/setup.js"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@dr.pogodin/react-global-state": "^0.19.4",
|
|
16
16
|
"@dr.pogodin/react-helmet": "^3.0.2",
|
|
17
17
|
"@dr.pogodin/react-themes": "^1.9.2",
|
|
18
|
-
"@jest/environment": "^30.
|
|
18
|
+
"@jest/environment": "^30.1.1",
|
|
19
19
|
"axios": "^1.11.0",
|
|
20
20
|
"commander": "^14.0.0",
|
|
21
21
|
"compression": "^1.8.1",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"cookie": "^1.0.2",
|
|
24
24
|
"cookie-parser": "^1.4.7",
|
|
25
25
|
"cross-env": "^10.0.0",
|
|
26
|
-
"dayjs": "^1.11.
|
|
26
|
+
"dayjs": "^1.11.18",
|
|
27
27
|
"express": "^5.1.0",
|
|
28
28
|
"helmet": "^8.1.0",
|
|
29
29
|
"http-status-codes": "^2.3.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"raf": "^3.4.1",
|
|
35
35
|
"react": "^19.1.1",
|
|
36
36
|
"react-dom": "^19.1.1",
|
|
37
|
-
"react-router": "^7.8.
|
|
37
|
+
"react-router": "^7.8.2",
|
|
38
38
|
"request-ip": "^3.3.0",
|
|
39
39
|
"rimraf": "^6.0.0",
|
|
40
40
|
"serialize-javascript": "^6.0.2",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@types/morgan": "^1.9.10",
|
|
73
73
|
"@types/node-forge": "^1.3.14",
|
|
74
74
|
"@types/pretty": "^2.0.3",
|
|
75
|
-
"@types/react": "^19.1.
|
|
76
|
-
"@types/react-dom": "^19.1.
|
|
75
|
+
"@types/react": "^19.1.12",
|
|
76
|
+
"@types/react-dom": "^19.1.9",
|
|
77
77
|
"@types/request-ip": "^0.0.41",
|
|
78
78
|
"@types/serialize-javascript": "^5.0.4",
|
|
79
79
|
"@types/serve-favicon": "^2.5.7",
|
|
@@ -81,16 +81,16 @@
|
|
|
81
81
|
"@types/webpack": "^5.28.5",
|
|
82
82
|
"@types/webpack-hot-middleware": "^2.25.10",
|
|
83
83
|
"autoprefixer": "^10.4.21",
|
|
84
|
-
"babel-jest": "^30.
|
|
84
|
+
"babel-jest": "^30.1.1",
|
|
85
85
|
"babel-loader": "^10.0.0",
|
|
86
86
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
87
87
|
"core-js": "^3.45.1",
|
|
88
88
|
"css-loader": "^7.1.2",
|
|
89
89
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
90
90
|
"identity-obj-proxy": "^3.0.0",
|
|
91
|
-
"jest": "^30.
|
|
92
|
-
"jest-environment-jsdom": "^30.
|
|
93
|
-
"memfs": "^4.
|
|
91
|
+
"jest": "^30.1.1",
|
|
92
|
+
"jest-environment-jsdom": "^30.1.1",
|
|
93
|
+
"memfs": "^4.38.2",
|
|
94
94
|
"mini-css-extract-plugin": "^2.9.4",
|
|
95
95
|
"mockdate": "^3.0.5",
|
|
96
96
|
"nodelist-foreach-polyfill": "^1.2.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"react-refresh": "^0.17.0",
|
|
102
102
|
"regenerator-runtime": "^0.14.1",
|
|
103
103
|
"resolve-url-loader": "^5.0.0",
|
|
104
|
-
"sass": "^1.
|
|
104
|
+
"sass": "^1.91.0",
|
|
105
105
|
"sass-loader": "^16.0.5",
|
|
106
106
|
"sitemap": "^8.0.0",
|
|
107
107
|
"source-map-loader": "^5.0.0",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
font-weight: $font-weight;
|
|
18
18
|
font-style: $font-style;
|
|
19
19
|
src: url("#{$font-url}#{$font-file}.eot");
|
|
20
|
-
src: url("#{$font-url}#{$font-file}.eot?#iefix") format("embedded-opentype"), url("#{$font-url}#{$font-file}.woff") format("woff"), url("#{$font-url}#{$font-file}.ttf") format("truetype")
|
|
20
|
+
src: url("#{$font-url}#{$font-file}.eot?#iefix") format("embedded-opentype"), url("#{$font-url}#{$font-file}.woff") format("woff"), url("#{$font-url}#{$font-file}.ttf") format("truetype");
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|