@dr.pogodin/react-utils 1.41.7 → 1.41.9

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.
@@ -233,12 +233,26 @@ function configFactory(ops) {
233
233
  plugins,
234
234
  resolve: {
235
235
  alias: {
236
+ // NOTE: The "conditionNames" workaround below messes up the loading of
237
+ // Babel's runtime helper for require of CJS and ES styles of modules
238
+ // (without this alias it is resolved to
239
+ // @babel/runtime/helpers/esm/interopRequireDefault, which has
240
+ // the hepler function attached to "default" export).
241
+ '@babel/runtime/helpers/interopRequireDefault': path_1.default.resolve(o.context, 'node_modules/@babel/runtime/helpers/interopRequireDefault'),
236
242
  // Aliases to JS an JSX files are handled by Babel.
237
243
  assets: path_1.default.resolve(o.context, 'src/assets'),
238
244
  components: path_1.default.resolve(o.context, 'src/shared/components'),
239
245
  fonts: path_1.default.resolve(o.context, 'src/assets/fonts'),
240
246
  styles: path_1.default.resolve(o.context, 'src/styles'),
241
247
  },
248
+ // NOTE: This is primarily motivated by the issue #413
249
+ // https://github.com/birdofpreyru/react-utils/issues/413
250
+ // caused by react-router exporting different package builds
251
+ // for "import" and "default" conditions, resulting in Webpack
252
+ // picking up different module versions for import() and require()
253
+ // imports. Adding "import" with the highest priorty below forces
254
+ // the "import" to be used, working around the problem.
255
+ conditionNames: ['import', '...'],
242
256
  extensions: [
243
257
  '.ts',
244
258
  '.tsx',
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.41.7",
2
+ "version": "1.41.9",
3
3
  "bin": {
4
4
  "react-utils-build": "bin/build.js",
5
5
  "react-utils-setup": "bin/setup.js"
@@ -8,7 +8,7 @@
8
8
  "url": "https://github.com/birdofpreyru/react-utils/issues"
9
9
  },
10
10
  "dependencies": {
11
- "@babel/runtime": "^7.26.0",
11
+ "@babel/runtime": "^7.26.7",
12
12
  "@dr.pogodin/babel-plugin-react-css-modules": "^6.13.3",
13
13
  "@dr.pogodin/csurf": "^1.14.1",
14
14
  "@dr.pogodin/js-utils": "^0.0.13",
@@ -16,7 +16,7 @@
16
16
  "@dr.pogodin/react-themes": "^1.8.0",
17
17
  "@jest/environment": "^29.7.0",
18
18
  "axios": "^1.7.9",
19
- "commander": "^13.0.0",
19
+ "commander": "^13.1.0",
20
20
  "compression": "^1.7.5",
21
21
  "config": "^3.3.12",
22
22
  "cookie": "^1.0.2",
@@ -35,7 +35,7 @@
35
35
  "react": "^19.0.0",
36
36
  "react-dom": "^19.0.0",
37
37
  "react-helmet-async": "^2.0.5",
38
- "react-router": "^7.1.2",
38
+ "react-router": "^7.1.3",
39
39
  "request-ip": "^3.3.0",
40
40
  "rimraf": "^6.0.0",
41
41
  "serialize-javascript": "^6.0.2",
@@ -47,12 +47,12 @@
47
47
  "description": "Collection of generic ReactJS components and utils",
48
48
  "devDependencies": {
49
49
  "@babel/cli": "^7.26.4",
50
- "@babel/core": "^7.26.0",
50
+ "@babel/core": "^7.26.7",
51
51
  "@babel/eslint-parser": "^7.26.5",
52
52
  "@babel/eslint-plugin": "^7.25.9",
53
53
  "@babel/node": "^7.26.0",
54
54
  "@babel/plugin-transform-runtime": "^7.25.9",
55
- "@babel/preset-env": "^7.26.0",
55
+ "@babel/preset-env": "^7.26.7",
56
56
  "@babel/preset-react": "^7.26.3",
57
57
  "@babel/preset-typescript": "^7.26.0",
58
58
  "@babel/register": "^7.25.9",
@@ -61,7 +61,7 @@
61
61
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
62
62
  "@testing-library/dom": "^10.4.0",
63
63
  "@testing-library/react": "^16.2.0",
64
- "@testing-library/user-event": "^14.6.0",
64
+ "@testing-library/user-event": "^14.6.1",
65
65
  "@tsconfig/recommended": "^1.0.8",
66
66
  "@types/compression": "^1.7.5",
67
67
  "@types/config": "^3.3.5",
@@ -70,11 +70,11 @@
70
70
  "@types/csurf": "^1.11.5",
71
71
  "@types/express": "^4.17.21",
72
72
  "@types/jest": "^29.5.14",
73
- "@types/lodash": "^4.17.14",
73
+ "@types/lodash": "^4.17.15",
74
74
  "@types/morgan": "^1.9.9",
75
75
  "@types/node-forge": "^1.3.11",
76
76
  "@types/pretty": "^2.0.3",
77
- "@types/react": "^19.0.7",
77
+ "@types/react": "^19.0.8",
78
78
  "@types/react-dom": "^19.0.3",
79
79
  "@types/request-ip": "^0.0.41",
80
80
  "@types/serialize-javascript": "^5.0.4",
@@ -115,14 +115,14 @@
115
115
  "sass-loader": "^16.0.4",
116
116
  "sitemap": "^8.0.0",
117
117
  "source-map-loader": "^5.0.0",
118
- "stylelint": "^16.13.2",
118
+ "stylelint": "^16.14.1",
119
119
  "stylelint-config-standard-scss": "^14.0.0",
120
120
  "supertest": "^7.0.0",
121
121
  "tsc-alias": "^1.8.10",
122
122
  "tstyche": "^3.5.0",
123
123
  "typed-scss-modules": "^8.1.1",
124
124
  "typescript": "^5.7.3",
125
- "typescript-eslint": "^8.20.0",
125
+ "typescript-eslint": "^8.22.0",
126
126
  "webpack": "^5.97.1",
127
127
  "webpack-dev-middleware": "^7.4.2",
128
128
  "webpack-hot-middleware": "^2.26.1",