@dr.pogodin/react-utils 1.43.30 → 1.43.31

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.
@@ -36,8 +36,7 @@ function newBaseConfig(options) {
36
36
  ['@babel/env', {
37
37
  // Leaves it to the Webpack to deal with modules.
38
38
  modules: (_a = options.modules) !== null && _a !== void 0 ? _a : false,
39
- // Chrome 69 is the browser/WebView for Android 9 (API level 28).
40
- targets: (_b = options.targets) !== null && _b !== void 0 ? _b : 'defaults or chrome >= 69',
39
+ targets: (_b = options.targets) !== null && _b !== void 0 ? _b : 'defaults',
41
40
  }],
42
41
  // TODO: Starting from Babel 8, "automatic" will be the default runtime,
43
42
  // thus once upgraded to Babel 8, runtime should be removed from
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.43.30",
2
+ "version": "1.43.31",
3
3
  "bin": {
4
4
  "react-utils-build": "bin/build.js",
5
5
  "react-utils-setup": "bin/setup.js"
@@ -33,8 +33,8 @@
33
33
  "node-forge": "^1.3.1",
34
34
  "qs": "^6.14.0",
35
35
  "raf": "^3.4.1",
36
- "react": "^19.1.0",
37
- "react-dom": "^19.1.0",
36
+ "react": "^19.1.1",
37
+ "react-dom": "^19.1.1",
38
38
  "react-router": "^7.7.1",
39
39
  "request-ip": "^3.3.0",
40
40
  "rimraf": "^6.0.0",
@@ -58,7 +58,7 @@
58
58
  "@dr.pogodin/babel-preset-svgr": "^1.9.2",
59
59
  "@dr.pogodin/eslint-configs": "^0.0.9",
60
60
  "@pmmmwh/react-refresh-webpack-plugin": "^0.6.1",
61
- "@testing-library/dom": "^10.4.0",
61
+ "@testing-library/dom": "^10.4.1",
62
62
  "@testing-library/react": "^16.3.0",
63
63
  "@testing-library/user-event": "^14.6.1",
64
64
  "@tsconfig/recommended": "^1.0.10",
@@ -72,8 +72,8 @@
72
72
  "@types/morgan": "^1.9.10",
73
73
  "@types/node-forge": "^1.3.13",
74
74
  "@types/pretty": "^2.0.3",
75
- "@types/react": "^19.1.8",
76
- "@types/react-dom": "^19.1.6",
75
+ "@types/react": "^19.1.9",
76
+ "@types/react-dom": "^19.1.7",
77
77
  "@types/request-ip": "^0.0.41",
78
78
  "@types/serialize-javascript": "^5.0.4",
79
79
  "@types/serve-favicon": "^2.5.7",
@@ -90,7 +90,7 @@
90
90
  "identity-obj-proxy": "^3.0.0",
91
91
  "jest": "^30.0.5",
92
92
  "jest-environment-jsdom": "^30.0.5",
93
- "memfs": "^4.22.0",
93
+ "memfs": "^4.35.0",
94
94
  "mini-css-extract-plugin": "^2.9.2",
95
95
  "mockdate": "^3.0.5",
96
96
  "nodelist-foreach-polyfill": "^1.2.0",
@@ -105,14 +105,14 @@
105
105
  "sass-loader": "^16.0.5",
106
106
  "sitemap": "^8.0.0",
107
107
  "source-map-loader": "^5.0.0",
108
- "stylelint": "^16.22.0",
108
+ "stylelint": "^16.23.0",
109
109
  "stylelint-config-standard-scss": "^15.0.1",
110
110
  "supertest": "^7.1.4",
111
111
  "tsc-alias": "1.8.16",
112
112
  "tstyche": "^4.3.0",
113
113
  "typed-scss-modules": "^8.1.1",
114
- "typescript": "^5.8.3",
115
- "webpack": "^5.100.2",
114
+ "typescript": "^5.9.2",
115
+ "webpack": "^5.101.0",
116
116
  "webpack-dev-middleware": "^7.4.2",
117
117
  "webpack-hot-middleware": "^2.26.1",
118
118
  "webpack-merge": "^6.0.1",
@@ -338,7 +338,7 @@ export default function factory(
338
338
  ? `<link rel="manifest" href="${publicPath as string}manifest.json">` : '';
339
339
 
340
340
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
341
- interface BufferWithNonce extends Buffer {
341
+ interface BufferWithNonce extends ArrayBuffer {
342
342
  nonce: string;
343
343
  }
344
344
 
@@ -626,9 +626,9 @@ export default function factory(
626
626
  // but it greately simplifies testing, and error reporting.
627
627
  await new Promise<void>((done, failed) => {
628
628
  brotliCompress(html, (error, buffer) => {
629
- const b = buffer as BufferWithNonce;
630
629
  if (error) failed(error);
631
630
  else {
631
+ const b = buffer as unknown as BufferWithNonce;
632
632
  b.nonce = (req as unknown as {
633
633
  nonce: string;
634
634
  }).nonce;
@@ -96,6 +96,7 @@ export default class E2eSsrEnv extends JsdomEnv {
96
96
 
97
97
  if (!this.global.webpackConfig) throw Error('Failed to load Webpack config');
98
98
  const compiler = webpack(this.global.webpackConfig);
99
+ if (!compiler) throw Error('Failed to construct Webpack compiler');
99
100
 
100
101
  // TODO: The "as typeof compiler.outputFileSystem" piece below is
101
102
  // a workaround for the Webpack regression: