Skip to content

Commit 2dfa880

Browse files
committed
feature-2449: React upgrade from React v18 to v19 dependencies updated
1 parent ac2e500 commit 2dfa880

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"url": "https://github.com/fusioncharts/react-fusioncharts-component/issues"
2525
},
2626
"dependencies": {
27-
"uuid": "^3.2.1"
27+
"uuid": "^11.1.0"
2828
},
2929
"devDependencies": {
3030
"@babel/cli": "^7.1.0",
@@ -40,14 +40,15 @@
4040
"eslint-plugin-import": "^2.9.0",
4141
"eslint-plugin-jsx-a11y": "^6.0.3",
4242
"eslint-plugin-react": "^7.7.0",
43-
"fusioncharts": "^3.18",
43+
"fusioncharts": "^4.1.2",
4444
"jest": "^22.4.2",
4545
"lodash": "^4.17.11",
4646
"nodemon": "^2.0.2",
47-
"prop-types": "^15.6.2",
47+
"process": "^0.11.10",
48+
"prop-types": "^15.8.1",
4849
"react": "^19.1.0",
4950
"react-addons-test-utils": "15.3.0",
50-
"react-component-gulp-tasks": "^0.7.6",
51+
"react-component-gulp-tasks": "^0.7.7",
5152
"react-dom": "^19.1.0",
5253
"react-test-renderer": "^19.1.0",
5354
"serve": "^10.0.1",

src/ReactFC.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import uuid from 'uuid/v4';
2+
import { v4 as uuid } from 'uuid';
33
import * as utils from './utils/utils';
44
import fusionChartsOptions from './utils/options';
55

webpack.config.example.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require('path');
2+
const webpack = require('webpack');
23

34
const config = {
45
entry: path.join(__dirname, 'example', 'index.js'),
@@ -21,6 +22,18 @@ const config = {
2122
}
2223
],
2324
},
25+
plugins: [
26+
// Add ProvidePlugin to polyfill `process` in the browser
27+
new webpack.ProvidePlugin({
28+
process: 'process/browser',
29+
}),
30+
],
31+
resolve: {
32+
// Add this alias for completeness
33+
alias: {
34+
process: 'process/browser',
35+
},
36+
},
2437
};
2538

2639
module.exports = config;

0 commit comments

Comments
 (0)