@dr.pogodin/react-utils 1.40.4 → 1.40.6

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.
@@ -2,7 +2,7 @@ import 'styles/global.scss';
2
2
  import type ServerT from './server';
3
3
  declare const server: (typeof ServerT) | null;
4
4
  declare const client: any;
5
- export { type AsyncCollectionLoaderT, type AsyncDataEnvelopeT, type AsyncDataLoaderT, type ForceT, type UseAsyncDataOptionsT, type UseAsyncDataResT, type UseGlobalStateResT, type ValueOrInitializerT, getGlobalState, GlobalStateProvider, newAsyncDataEnvelope, useAsyncCollection, useAsyncData, useGlobalState, withGlobalStateType, } from '@dr.pogodin/react-global-state';
5
+ export { type AsyncCollectionT, type AsyncCollectionLoaderT, type AsyncDataEnvelopeT, type AsyncDataLoaderT, type ForceT, type UseAsyncDataOptionsT, type UseAsyncDataResT, type UseGlobalStateResT, type ValueOrInitializerT, getGlobalState, GlobalStateProvider, newAsyncDataEnvelope, useAsyncCollection, useAsyncData, useGlobalState, withGlobalStateType, } from '@dr.pogodin/react-global-state';
6
6
  export * from './shared/components';
7
7
  export { type Listener, type Theme, config, Barrier, Emitter, isomorphy, getSsrContext, Semaphore, splitComponent, themed, ThemeProvider, time, webpack, withRetries, } from './shared/utils';
8
8
  export { client, server };
@@ -26,8 +26,8 @@ function newBaseConfig(options) {
26
26
  ['@babel/env', {
27
27
  // Leaves it to the Webpack to deal with modules.
28
28
  modules: (_a = options.modules) !== null && _a !== void 0 ? _a : false,
29
- // Chrome 69 is the browser/WebView for Android 9 (API level 28).
30
- targets: options.targets || 'defaults or chrome >= 69',
29
+ // Chrome 44 is the browser/WebView for Android 6.0 (API level 23).
30
+ targets: options.targets || 'defaults or chrome >= 44',
31
31
  }],
32
32
  // TODO: Starting from Babel 8, "automatic" will be the default runtime,
33
33
  // thus once upgraded to Babel 8, runtime should be removed from
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.40.4",
2
+ "version": "1.40.6",
3
3
  "bin": {
4
4
  "react-utils-build": "bin/build.js",
5
5
  "react-utils-setup": "bin/setup.js"
@@ -12,7 +12,7 @@
12
12
  "@dr.pogodin/babel-plugin-react-css-modules": "^6.13.2",
13
13
  "@dr.pogodin/csurf": "^1.13.0",
14
14
  "@dr.pogodin/js-utils": "^0.0.12",
15
- "@dr.pogodin/react-global-state": "^0.17.1",
15
+ "@dr.pogodin/react-global-state": "^0.17.2",
16
16
  "@dr.pogodin/react-themes": "^1.7.0",
17
17
  "@jest/environment": "^29.7.0",
18
18
  "axios": "^1.7.7",
@@ -23,7 +23,7 @@
23
23
  "cookie-parser": "^1.4.6",
24
24
  "cross-env": "^7.0.3",
25
25
  "dayjs": "^1.11.13",
26
- "express": "^4.19.2",
26
+ "express": "^4.21.0",
27
27
  "helmet": "^7.1.0",
28
28
  "http-status-codes": "^2.3.0",
29
29
  "joi": "^17.13.3",
@@ -35,7 +35,7 @@
35
35
  "react": "^18.3.1",
36
36
  "react-dom": "^18.3.1",
37
37
  "react-helmet": "^6.1.0",
38
- "react-router-dom": "^6.26.1",
38
+ "react-router-dom": "^6.26.2",
39
39
  "request-ip": "^3.3.0",
40
40
  "rimraf": "^6.0.0",
41
41
  "serialize-javascript": "^6.0.2",
@@ -64,12 +64,12 @@
64
64
  "@testing-library/user-event": "^14.5.2",
65
65
  "@tsconfig/recommended": "^1.0.7",
66
66
  "@types/compression": "^1.7.5",
67
- "@types/config": "^3.3.4",
67
+ "@types/config": "^3.3.5",
68
68
  "@types/cookie": "^0.6.0",
69
69
  "@types/cookie-parser": "^1.4.7",
70
70
  "@types/csurf": "^1.11.5",
71
71
  "@types/express": "^4.17.21",
72
- "@types/jest": "^29.5.12",
72
+ "@types/jest": "^29.5.13",
73
73
  "@types/lodash": "^4.17.7",
74
74
  "@types/morgan": "^1.9.9",
75
75
  "@types/node-forge": "^1.3.11",
@@ -94,10 +94,10 @@
94
94
  "eslint-config-airbnb": "^19.0.4",
95
95
  "eslint-config-airbnb-typescript": "^18.0.0",
96
96
  "eslint-import-resolver-babel-module": "^5.3.2",
97
- "eslint-plugin-import": "^2.29.1",
98
- "eslint-plugin-jest": "^28.8.2",
99
- "eslint-plugin-jsx-a11y": "^6.9.0",
100
- "eslint-plugin-react": "^7.35.0",
97
+ "eslint-plugin-import": "^2.30.0",
98
+ "eslint-plugin-jest": "^28.8.3",
99
+ "eslint-plugin-jsx-a11y": "^6.10.0",
100
+ "eslint-plugin-react": "^7.36.1",
101
101
  "eslint-plugin-react-hooks": "^4.6.2",
102
102
  "identity-obj-proxy": "^3.0.0",
103
103
  "jest": "^29.7.0",
@@ -106,14 +106,14 @@
106
106
  "mini-css-extract-plugin": "^2.9.1",
107
107
  "mockdate": "^3.0.5",
108
108
  "nodelist-foreach-polyfill": "^1.2.0",
109
- "postcss": "^8.4.44",
109
+ "postcss": "^8.4.45",
110
110
  "postcss-loader": "^8.1.1",
111
111
  "postcss-scss": "^4.0.9",
112
112
  "pretty": "^2.0.0",
113
113
  "react-refresh": "^0.14.2",
114
114
  "regenerator-runtime": "^0.14.1",
115
115
  "resolve-url-loader": "^5.0.0",
116
- "sass": "^1.77.8",
116
+ "sass": "^1.78.0",
117
117
  "sass-loader": "^16.0.1",
118
118
  "sitemap": "^8.0.0",
119
119
  "source-map-loader": "^5.0.0",
@@ -123,8 +123,8 @@
123
123
  "tsc-alias": "^1.8.10",
124
124
  "tstyche": "^2.1.1",
125
125
  "typed-scss-modules": "^8.0.1",
126
- "typescript": "^5.5.4",
127
- "typescript-eslint": "^8.4.0",
126
+ "typescript": "^5.6.2",
127
+ "typescript-eslint": "^8.5.0",
128
128
  "webpack": "^5.94.0",
129
129
  "webpack-dev-middleware": "^7.4.2",
130
130
  "webpack-hot-middleware": "^2.26.1",
package/src/index.ts CHANGED
@@ -9,6 +9,7 @@ const server = webpack.requireWeak('./server', __dirname) as (typeof ServerT) |
9
9
  const client = server ? undefined : require('./client').default;
10
10
 
11
11
  export {
12
+ type AsyncCollectionT,
12
13
  type AsyncCollectionLoaderT,
13
14
  type AsyncDataEnvelopeT,
14
15
  type AsyncDataLoaderT,