-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Breaking changes] Bump several major dependencies #2041
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/EHxwSkxdA6BGaavpSMW4Cg21aVuj |
🦋 Changeset detectedLatest commit: b8777c2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
FYI: the production bundle seem to work but it's the dev server that has problems. |
Note: re-enable website into workspaces once we are able to upgrade to Webpack v5 |
Update: things look good now, I was able to start dev server locally and to build the production app. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouuuuh very exciting! Thanks 🙇♀️
packages/mc-scripts/src/build.js
Outdated
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages'); | ||
const FileSizeReporter = require('react-dev-utils/FileSizeReporter'); | ||
const printBuildError = require('react-dev-utils/printBuildError'); | ||
// const formatWebpackMessages = require('./patches/react-dev-utils/formatWebpackMessages'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this 🤔?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's redundant to L19
@@ -380,6 +379,8 @@ module.exports = function createWebpackConfigForDevelopment(options = {}) { | |||
}, | |||
], | |||
include: mergedOptions.sourceFolders.concat(vendorsToTranspile), | |||
// Disable require.ensure as it's not a standard language feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
.changeset/angry-parrots-begin.md
Outdated
'playground': major | ||
--- | ||
|
||
Ships with `react@17` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now uses react@17
and react-dom@17
.
.changeset/brave-chairs-listen.md
Outdated
'@commercetools-frontend/create-mc-app': major | ||
--- | ||
|
||
- Change required engine version to `>=12 || >=14`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Change required engine version to `>=12 || >=14`. | |
- Changes required Node.js engine version to `>=12 || >=14` in `package.json`. |
.changeset/brown-cows-sparkle.md
Outdated
|
||
- Requires a peer dependency of `react@17`. | ||
- The `@types/react*` peer dependencies have been removed and included as normal dependencies with a minor range version. | ||
- Change required engine version to `>=12 || >=14`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Change required engine version to `>=12 || >=14`. | |
- Change required Node.js engine version to `>=12 || >=14` in `package.json`. |
.changeset/chatty-houses-shave.md
Outdated
'@commercetools-frontend/mc-html-template': major | ||
--- | ||
|
||
- Change required engine version to `>=12 || >=14`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Change required engine version to `>=12 || >=14`. | |
- Change required Node.js engine version to `>=12 || >=14` in `package.json`. |
.changeset/clever-monkeys-invite.md
Outdated
'@commercetools-local/visual-testing-app': major | ||
--- | ||
|
||
Ships with `react@17` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ships with `react@17` | |
Ships with `react@17`Now uses react@17 and react-dom@17. |
.changeset/clever-wombats-teach.md
Outdated
'merchant-center-application-template-starter': minor | ||
--- | ||
|
||
- Ships template with `react@17`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ships template with `react@17`. | |
Now uses react@17 and react-dom@17. |
.changeset/little-wasps-push.md
Outdated
'@commercetools-frontend/mc-dev-authentication': major | ||
--- | ||
|
||
- Change required engine version to `>=12 || >=14`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Change required engine version to `>=12 || >=14`. | |
- Change required Node.js engine version to `>=12 || >=14` in `package.json`. |
.changeset/quiet-glasses-smell.md
Outdated
- The `@types/react*` peer dependencies have been removed and included as normal dependencies with a minor range version. | ||
- The peer dependency `react-intl` now only requires version `>=5`. | ||
- The peer dependency `@testing-library/react` now only requires version `>=11`. | ||
- Change required engine version to `>=12 || >=14`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Change required engine version to `>=12 || >=14`. | |
- Change required Node.js engine version to `>=12 || >=14` in `package.json`. |
.changeset/sweet-jeans-draw.md
Outdated
'@commercetools-frontend/mc-scripts': major | ||
--- | ||
|
||
- Change required engine version to `>=12 || >=14`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Change required engine version to `>=12 || >=14`. | |
- Change required Node.js engine version to `>=12 || >=14` in `package.json`. |
.changeset/tricky-wolves-lick.md
Outdated
'@commercetools-frontend/application-config': major | ||
--- | ||
|
||
- Change required engine version to `>=12 || >=14`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Change required engine version to `>=12 || >=14`. | |
- Change required Node.js engine version to `>=12 || >=14` in `package.json`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's spin this locally, one time.
Regarding the UI-kit upgrade, we'll run into conflicts.
either the ui-kit upgrade goes first or this PR. I'm fine with either, but perhaps it's easier that this PR goes first.
@@ -6,7 +6,7 @@ | |||
"private": true, | |||
"scripts": { | |||
"prepare": "husky install", | |||
"postinstall": "manypkg check && preconstruct dev && yarn compile-css-modules && yarn --cwd website && yarn --cwd website-components-playground", | |||
"postinstall": "manypkg check && preconstruct dev && yarn compile-css-modules", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
if (result.errors.some(isLikelyASyntaxError)) { | ||
// If there are any syntax errors, show just them. | ||
result.errors = result.errors.filter(isLikelyASyntaxError); | ||
} | ||
return result; |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
packages/mc-scripts/src/build.js
Outdated
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages'); | ||
const FileSizeReporter = require('react-dev-utils/FileSizeReporter'); | ||
const printBuildError = require('react-dev-utils/printBuildError'); | ||
// const formatWebpackMessages = require('./patches/react-dev-utils/formatWebpackMessages'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's redundant to L19
infrastructureLogging: { | ||
level: 'warn', | ||
level: 'none', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't the same as removing the option?
export type LinkProps = { | ||
tone?: 'primary' | 'inverted'; | ||
isExternal?: boolean; | ||
to?: string | H.LocationDescriptor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 yesssssssss
There is a PR for Link to TS on ui-kit..
this won't last long
"@commercetools-uikit/design-system": "^11.2.1", | ||
"@commercetools-uikit/icon-button": "^11.2.1", | ||
"@commercetools-uikit/icons": "^11.2.1", | ||
"@commercetools-uikit/multiline-text-field": "^11.3.0", | ||
"@commercetools-uikit/secondary-button": "^11.2.1", | ||
"@commercetools-uikit/select-field": "^11.2.1", | ||
"@commercetools-uikit/spacings": "^11.2.1", | ||
"@commercetools-uikit/text": "^11.2.1", | ||
"@commercetools-uikit/text-field": "^11.2.1", | ||
"@commercetools-uikit/text-input": "^11.2.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay we will have conflicts.
I'm fine with merging this PR first then updating ui-kit on top of that.
* chore: upgrade ui-kit * refactor(types): add new horizontalConstraint map, add `design-system` module * refactor(playground): remove old use of props * refactor(application-components): remove use of old props * refactor(visual-testing-app): remove use of old props * chore: changeset * chore: upgrade to latest docs-kit (includes uikit v12) * fix: remove unnecessary types, fix constraints Co-authored-by: Nicola Molinari <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Follow up of #1874
This PR now contains several major dependency updates, resulting in releasing a new major of appkit due to the nature of peer dependencies and the major library upgrades.
More specifically:
The appkit packages don't contain any breaking changes.