Skip to content

Commit fed5087

Browse files
refactor: [UEPR-55] updated react-intl from v2 to v6
1 parent 5f12985 commit fed5087

File tree

13 files changed

+475
-342
lines changed

13 files changed

+475
-342
lines changed

package-lock.json

Lines changed: 163 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"peerDependencies": {
3636
"react": "^16",
3737
"react-dom": "^16",
38-
"react-intl": "^2",
38+
"react-intl": "^6",
3939
"react-intl-redux": "^0.7 || ^2.0.0",
4040
"react-popover": "^0.5",
4141
"react-redux": "^5",
@@ -81,7 +81,7 @@
8181
"raf": "3.4.1",
8282
"react": "16.14.0",
8383
"react-dom": "16.14.0",
84-
"react-intl": "2.9.0",
84+
"react-intl": "^6.6.8",
8585
"react-intl-redux": "2.4.1",
8686
"react-popover": "0.5.10",
8787
"react-redux": "5.1.2",
@@ -121,7 +121,10 @@
121121
"moduleNameMapper": {
122122
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
123123
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js"
124-
}
124+
},
125+
"transformIgnorePatterns": [
126+
"/node_modules/(?!intl-messageformat|intl-messageformat-parser).+\\.js$"
127+
]
125128
},
126129
"jest-junit": {
127130
"outputDirectory": "./test/results"

src/components/color-picker/color-picker.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3-
import {defineMessages, FormattedMessage, injectIntl, intlShape} from 'react-intl';
3+
import {defineMessages, FormattedMessage, injectIntl} from 'react-intl';
4+
import intlShape from '../../lib/intl-shape.js';
45

56
import classNames from 'classnames';
67
import parseColor from 'parse-color';

src/components/coming-soon/coming-soon.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ See #13 */
44

55
import bindAll from 'lodash.bindall';
66
import classNames from 'classnames';
7-
import {defineMessages, injectIntl, intlShape, FormattedMessage} from 'react-intl';
7+
import {defineMessages, injectIntl, FormattedMessage} from 'react-intl';
8+
import intlShape from '../../lib/intl-shape.js';
89
import PropTypes from 'prop-types';
910
import React from 'react';
1011
import ReactTooltip from 'react-tooltip';

0 commit comments

Comments
 (0)