Skip to content

Commit

Permalink
chore: upgrade react-intl to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Apr 20, 2023
1 parent bc6500b commit a0dc932
Show file tree
Hide file tree
Showing 13 changed files with 195 additions and 353 deletions.
18 changes: 18 additions & 0 deletions .changeset/khaki-spies-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'@commercetools-applications/merchant-center-template-starter-typescript': major
'@commercetools-frontend/application-components': major
'@commercetools-applications/merchant-center-template-starter': major
'@commercetools-website/components-playground': major
'@commercetools-frontend/react-notifications': major
'@commercetools-frontend/jest-preset-mc-app': major
'@commercetools-frontend/application-shell': major
'@commercetools-local/visual-testing-app': major
'@commercetools-frontend/i18n': major
'@commercetools-local/playground': major
---

Upgrade `react-intl` to `v6`.

# Migration

The peer dependency of `react-intl` should be updated to `v6`. No other migration steps are required.
4 changes: 2 additions & 2 deletions application-templates/starter-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@commercetools-uikit/text-input": "^15.15.0",
"@commercetools/sync-actions": "^5.3.1",
"@emotion/react": "11.10.6",
"@formatjs/cli": "4.8.4",
"@formatjs/cli": "6.0.4",
"@jest/types": "27.5.1",
"@manypkg/cli": "0.20.0",
"@testing-library/dom": "^8.20.0",
Expand Down Expand Up @@ -86,7 +86,7 @@
"prettier": "2.8.4",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-intl": "^5.25.1",
"react-intl": "^6.3.2",
"react-redux": "7.2.9",
"react-router-dom": "5.3.4",
"redux": "4.2.1",
Expand Down
4 changes: 2 additions & 2 deletions application-templates/starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@commercetools-uikit/text-input": "^15.15.0",
"@commercetools/sync-actions": "^5.3.1",
"@emotion/react": "11.10.6",
"@formatjs/cli": "4.8.4",
"@formatjs/cli": "6.0.4",
"@manypkg/cli": "0.20.0",
"@testing-library/dom": "^8.20.0",
"@testing-library/jest-dom": "^5.16.5",
Expand All @@ -77,7 +77,7 @@
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-intl": "^5.25.1",
"react-intl": "^6.3.2",
"react-redux": "7.2.9",
"react-router-dom": "5.3.4",
"redux": "4.2.1"
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"@commitlint/cli": "17.4.4",
"@commitlint/config-conventional": "17.4.4",
"@faker-js/faker": "7.6.0",
"@formatjs/cli": "4.8.4",
"@formatjs/cli": "6.0.4",
"@graphql-codegen/add": "3.2.3",
"@graphql-codegen/cli": "2.16.5",
"@graphql-codegen/introspection": "2.2.3",
Expand Down Expand Up @@ -157,7 +157,6 @@
},
"resolutions": {
"@babel/preset-env": "^7.18.6",
"@formatjs/ecma402-abstract": "^1.11.8",
"@jest/types": "27.5.1",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@types/eslint": "^8.2.2",
Expand All @@ -168,8 +167,7 @@
"@typescript-eslint/parser": "^5.10.0",
"core-js-compat": "^3.23.4",
"intl-messageformat-parser": "6.4.4",
"babel-plugin-typescript-to-proptypes@1.4.2": "patch:babel-plugin-typescript-to-proptypes@npm:1.4.2#.yarn/patches/babel-plugin-typescript-to-proptypes-npm-1.4.2-81920f5edd.patch",
"@formatjs/intl@2.2.1": "patch:@formatjs/intl@npm%3A2.2.1#./.yarn/patches/@formatjs-intl-npm-2.2.1-1251194b73.patch"
"babel-plugin-typescript-to-proptypes@1.4.2": "patch:babel-plugin-typescript-to-proptypes@npm:1.4.2#.yarn/patches/babel-plugin-typescript-to-proptypes-npm-1.4.2-81920f5edd.patch"
},
"engines": {
"node": ">=18",
Expand Down
4 changes: 2 additions & 2 deletions packages/application-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
"@types/raf-schd": "^4.0.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-intl": "^5.25.1",
"react-intl": "^6.3.2",
"react-router-dom": "5.3.4"
},
"peerDependencies": {
"react": "17.x",
"react-dom": "17.x",
"react-intl": "5.x",
"react-intl": "6.x",
"react-router-dom": "5.x"
}
}
4 changes: 2 additions & 2 deletions packages/application-shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"msw": "0.49.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-intl": "^5.25.1",
"react-intl": "^6.3.2",
"react-redux": "7.2.9",
"react-router-dom": "5.3.4",
"redux": "4.2.1",
Expand All @@ -125,7 +125,7 @@
"@testing-library/react-hooks": "7.x || 8.x",
"react": "17.x",
"react-dom": "17.x",
"react-intl": "5.x",
"react-intl": "6.x",
"react-redux": "7.x",
"react-router-dom": "5.x",
"redux": "4.x"
Expand Down
6 changes: 3 additions & 3 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
"prop-types": "15.8.1"
},
"devDependencies": {
"@formatjs/cli": "4.8.4",
"@formatjs/cli": "6.0.4",
"react": "17.0.2",
"react-intl": "^5.25.1"
"react-intl": "^6.3.2"
},
"peerDependencies": {
"react": "17.x",
"react-intl": "5.x"
"react-intl": "6.x"
}
}
10 changes: 5 additions & 5 deletions packages/jest-preset-mc-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"module": "./jest-preset.js",
"dependencies": {
"@commercetools-frontend/babel-preset-mc-app": "21.25.2",
"@formatjs/intl-getcanonicallocales": "^1.9.2",
"@formatjs/intl-listformat": "^7.1.7",
"@formatjs/intl-locale": "^2.4.47",
"@formatjs/intl-numberformat": "^7.4.3",
"@formatjs/intl-pluralrules": "^4.3.3",
"@formatjs/intl-getcanonicallocales": "^2.1.0",
"@formatjs/intl-listformat": "^7.1.9",
"@formatjs/intl-locale": "^3.1.1",
"@formatjs/intl-numberformat": "^8.3.5",
"@formatjs/intl-pluralrules": "^5.1.10",
"@sheerun/mutationobserver-shim": "0.3.3",
"@testing-library/jest-dom": "5.16.5",
"babel-jest": "27.5.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
"@testing-library/react": "12.1.5",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-intl": "^5.25.1",
"react-intl": "^6.3.2",
"react-redux": "7.2.9",
"react-router-dom": "5.3.4"
},
"peerDependencies": {
"react": "17.x",
"react-dom": "17.x",
"react-intl": "5.x",
"react-intl": "6.x",
"react-redux": "7.x",
"react-router-dom": "5.x"
}
Expand Down
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-intl": "^5.25.1",
"react-intl": "^6.3.2",
"react-router-dom": "5.3.4",
"vercel": "24.2.5"
},
"devDependencies": {
"@commercetools-backend/express": "21.25.2",
"@commercetools-frontend/mc-dev-authentication": "21.25.2",
"@commercetools-frontend/mc-scripts": "21.25.2",
"@formatjs/cli": "4.8.4",
"@formatjs/cli": "6.0.4",
"@types/dotenv-flow": "^3.2.0",
"@vercel/node": "^2.9.4",
"dotenv-flow": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion visual-testing-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"formik": "2.2.9",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-intl": "^5.25.1",
"react-intl": "^6.3.2",
"react-redux": "7.2.9",
"react-router-dom": "5.3.4"
},
Expand Down
2 changes: 1 addition & 1 deletion website-components-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"moment-timezone": "^0.5.40",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-intl": "^5.25.1",
"react-intl": "^6.3.2",
"react-router-dom": "5.3.4"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit a0dc932

Please sign in to comment.