-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Upgrade Node to 18 #6740
Upgrade Node to 18 #6740
Conversation
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
🦋 Changeset detectedLatest commit: b309747 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 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 |
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[email protected]>
Signed-off-by: Brent Hoover <[email protected]> Signed-off-by: Brent Hoover <[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.
- Base branch needs to be release-5
- needs changesets for all plugins
- let's make the require/import thing consistent across all plugins
Otherwise seems ok
package.json
Outdated
"npm": ">=7" | ||
}, | ||
"engineStrict": true, | ||
"scripts": { | ||
"start:dev": "npm run start:dev -w apps/reaction", | ||
"start:meteor-blaze-app": "npm run start -w=apps/meteor-blaze-app", | ||
"build:packages": "pnpm -r run build", | ||
"test": "pnpm -r run test", | ||
"test": "pnpm -r run test --forceExit", |
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.
Is this the right place to put this parameter?
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.
I believe the parameter was correctly passed to jest as we could see in the earlier successful unit-tests (ex test-unit (79061)).
But thinking about it now, this was one of the option suggested when we had the unit-test stalling with jest v25. Now after the upgrade, the tests are passing without this param. Hence I have removed the same and all tests passed.
I think the changeset we should add to each plugin should be What do you mean by require/import being consistent? Do we have plugins that use require? |
Yes, we have many. It was the other method we used for reading in the json files |
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
@zenweasel @tedraykov Regarding the changeset, I selected all plpugins for Major bump, but was not sure if we could assign Major bump for Reaction4. I assume this could change Reaction to v5 with the merge of this branch to release5 branch and create confusion. Hence I have not yet applied the changeset. I shall discuss tomorrow morning. Regarding the require to import change, my understanding is that we should be making the change from require -> import only for .json file imports (by including the assert). I found only two files which has this condition and have updated that. (Currently eslint failed, but will fix it along with changeset changes). Rest of the 'require' calls are for few other external modules and files like config.cjs. I assume we need not update those. |
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
External requires can be changed to import only if that package publishes an ESM entry point. It's becoming increasingly common, but still a lot of packages don't. I'd say that's a separate effort, but worth keeping an eye on the release notes of packages as you update them, in case they now include ESM. |
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
Signed-off-by: Sujith <[email protected]>
|
Resolves #6396
Impact: major
Type: feature|bugfix
Issue
Current version is 14. Upgrade to 18.10.0
Solution
Primarily addressed the changes related to 'assert json' for json imports. All json imports are updated to have have
assert { type: "json" }
.Additional config updates in babel, eslint and docker files (please refer the files changed)
Jest had to be upgraded from v25.5.4 to v29.4.3 to include fixes related to
workerIdleMemoryLimit
Jasmine2 had to be explicitly installed while performing Jest upgrade
Breaking changes
Node required version upgraded from 14 to 18.10.0
Testing
Unit tests and Integration:query tests passed locally.
Integration:mutation failed in a Mac M1 Pro 32GB system, but passed in a Linux system with similar config.
All test passed in CircleCI after upgrade to LARGE configuration
Also successfully placed order using old storefront with updated version.