-
Notifications
You must be signed in to change notification settings - Fork 81
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
Clean up dependencies [FC-0062] #1255
Clean up dependencies [FC-0062] #1255
Conversation
Thanks for the pull request, @bradenmacdonald! What's next?Please work through the following steps to get your changes ready for engineering review: 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:
When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
@@ -47,6 +47,7 @@ | |||
"@dnd-kit/sortable": "^8.0.0", | |||
"@dnd-kit/utilities": "^3.2.2", | |||
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.3", | |||
"@edx/browserslist-config": "1.2.0", |
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.
browserslist-config
is required for webpack to build the MFE so it should be a dependency, not a devDependency.
@@ -62,6 +63,7 @@ | |||
"@openedx-plugins/course-app-teams": "file:plugins/course-apps/teams", | |||
"@openedx-plugins/course-app-wiki": "file:plugins/course-apps/wiki", | |||
"@openedx-plugins/course-app-xpert_unit_summary": "file:plugins/course-apps/xpert_unit_summary", | |||
"@openedx/frontend-build": "^14.0.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.
frontend-build
is required for webpack to build the MFE so it should be a dependency, not a devDependency.
@@ -97,7 +99,6 @@ | |||
"react-transition-group": "4.4.5", | |||
"redux": "4.0.5", | |||
"redux-logger": "^3.0.6", | |||
"redux-mock-store": "^1.5.4", |
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 is only used in tests, so it's supposed to be a devDependency
"@edx/react-unit-test-utils": "3.0.0", | ||
"@edx/reactifex": "^1.0.3", |
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.
Doesn't appear to be used [directly] in this MFE.
"@testing-library/jest-dom": "5.17.0", | ||
"@testing-library/react": "12.1.5", | ||
"@testing-library/react-hooks": "^8.0.1", | ||
"@testing-library/user-event": "^13.2.1", | ||
"@types/lodash": "^4.17.7", | ||
"axios": "^0.28.0", |
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.
We shouldn't specify an axios
version as it's never directly imported. frontend-platform
wraps it for us and determines which version to use.
"axios-mock-adapter": "1.22.0", | ||
"eslint-import-resolver-webpack": "^0.13.8", | ||
"fetch-mock-jest": "^1.5.1", | ||
"glob": "7.2.3", |
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.
Doesn't appear to be used [directly] in this MFE.
"husky": "7.0.4", | ||
"jest-canvas-mock": "^2.5.2", | ||
"jest-expect-message": "^1.1.3", | ||
"react-test-renderer": "17.0.2", | ||
"reactifex": "1.1.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.
Doesn't appear to be used [directly] in this MFE.
"ts-loader": "^9.5.1" | ||
}, | ||
"peerDependencies": { | ||
"decode-uri-component": ">=0.2.2" |
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.
Doesn't appear to be used [directly] in this MFE.
"husky": "7.0.4", | ||
"jest-canvas-mock": "^2.5.2", | ||
"jest-expect-message": "^1.1.3", | ||
"react-test-renderer": "17.0.2", | ||
"reactifex": "1.1.1", | ||
"ts-loader": "^9.5.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.
TS support is configured by frontend-build
; we don't need to specify a loader version here.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1255 +/- ##
=======================================
Coverage 92.22% 92.22%
=======================================
Files 1008 1008
Lines 18514 18514
Branches 3947 3958 +11
=======================================
Hits 17074 17074
Misses 1371 1371
Partials 69 69 ☔ View full report in Codecov by Sentry. |
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.
Looks good 👍
- I tested this: I followed the testing instructions.
- I read through the code and considered the security, stability and performance implications of the changes.
- Includes documentation
Description
This fixes some problems with the dependencies and removes unused dependencies.
See inline comments for explanations of each change.
Supporting information
n/a
Testing instructions
npm ci --omit=dev && npm run build
to ensure that this MFE can be built withoutdevDependencies
Other information
Private ref: FAL-3819