Open Abhijay007 opened 8 months ago
Thank you @Abhijay007 for spearheading this! I am sorry where we don't have automated tests in place to confirm all operations (specifically with the UI). I updated the instructions with details on testing.
I am working on updating the following dependencies, and will open PR for this soon :
axios
react-draggable
react-tagsinput
yarn
postcss
enzyme-adapter-react-16
Hey @lrasmus we can add a bot to update the dependencies automatically
Hey @lrasmus we can add a bot to update the dependencies automatically
Hi @utnim2, thank you for the suggestion. We already have an automated GitHub bot set up for this. However, these bots are not as effective. They only work to update dependencies to a minor higher version that is compatible, but they do not address the "breaking changes". That's why we opened this issue. There are some major version upgrades in the dependencies that will introduce breaking changes, and we need to address them by manually updating those dependencies.
@utnim2 - thank you for the suggestion! Like @Abhijay007 pointed out, the automated suggestions can't guarantee the code will continue to work. It's extra work to have to go through and do these by hand. Once we get through this push, we may be able to go back to an automated solution though!
I am working on updating the following dependencies, and will open PR for this soon :
@babel/core
eslint
eslint-plugin-import
eslint-plugin-jsx-a11y
eslint-plugin-react
@mui/icons-material
@mui/material
@mui/styles
echarts
webpack
webpack-bundle-analyzer
webpack-merge
@electron/rebuild
@electron/remote
@emotion/react
@lrasmus please reopen this issue as there are still pending dependencies to update, I think it might got auto closed
It did get auto-closed, thanks for noticing!
I am working on updating the following dependencies, and will open PR for this soon :
@babel/plugin-proposal-class-properties
@babel/plugin-proposal-decorators
@babel/plugin-proposal-do-expressions
@babel/plugin-proposal-export-default-from
@babel/plugin-proposal-export-namespace-from
@babel/plugin-proposal-function-bind
@babel/plugin-proposal-function-sent
@babel/plugin-proposal-json-strings
@babel/plugin-proposal-logical-assignment-operators
@babel/plugin-proposal-nullish-coalescing-operator
@babel/plugin-proposal-numeric-separator
@babel/plugin-proposal-optional-chaining
@babel/plugin-proposal-pipeline-operator
@babel/plugin-proposal-throw-expressions
@babel/plugin-syntax-dynamic-import
@babel/plugin-syntax-import-meta
@babel/plugin-transform-react-constant-elements
@babel/plugin-transform-react-inline-elements
@babel/preset-flow
@babel/preset-react
@babel/register
eslint-plugin-react
core-js
d3
easymde
isomorphic-git
winston
@lrasmus please reopen this issue as it again got auto closed
I am working on updating the following dependencies, and will open PR for this soon :
@lrasmus I'd like to help you guys with this issue to make it happen earlier so we could move on to setting up the dependencies for automated update. Give me clearance so I can list what all dependencies I'll update with my PR.
@lrasmus I'd like to help you guys with this issue to make it happen earlier so we could move on to setting up the dependencies for automated update. Give me clearance so I can list what all dependencies I'll update with my PR.
Hi @AdiAkhileshSingh15, thanks for showing your interest in the same. I can help you with it. Here is a short guide you can follow in order to update leftover dependencies.
The goal of the issue is to update the existing dependencies to the latest LTS (Long Term Support) version so that the project will be easier to maintain and follow the latest standards. To do this, you can follow these steps:
The project utilizes yarn
as its primary package manager. You can run the command yarn upgrade-interactive --latest
to see which dependencies need to be updated.
Some of them are : as per the latest run of the command (note: I updated a few dependencies and will open a PR soon, so the current leftovers are):
devDependencies:
dependencies:
Once you've updated the dependencies, run different checks using commands like:
yarn test
- all tests should passyarn dev
- no UI fails should be detectedyarn build
- no build fails should be detectedyarn dev
- to check console errorsOnce all of this is done, make a PR with the updated dependencies, Also, please list out on what dependencies you are working, as other contributors might be working on some. A list can help us to avoid ones that are addressed by others.
if you have any other doubts let me know, thanks! looking forward to your contributions :)
Thank you @Abhijay007 for you guidance. I am currently working on updating the following few dependencies with my upcoming PR:
devDependencies:
dependencies:
@Abhijay007 , I came across some errors while trying to update the dependencies that involve webpack
, namely, webpack-cli
, webpack-dev-server
, stating SyntaxError: Cannot use import statement outside a module
in configs
folder webpack files for the import statements as follows.
On reading about this error message, it said that we should specify type:module
in the nearest parent package.json
file to make their type mjs
, though that didn't help. I'd appreciate if you can help with that, or you came across something similar earlier in this code. Or if you'd wanna take up the update process for webpack
deps.
@Abhijay007 , I came across some errors while trying to update the dependencies that involve
webpack
, namely,webpack-cli
,webpack-dev-server
, statingSyntaxError: Cannot use import statement outside a module
inconfigs
folder webpack files for the import statements as follows. On reading about this error message, it said that we should specifytype:module
in the nearest parentpackage.json
file to make their typemjs
, though that didn't help. I'd appreciate if you can help with that, or you came across something similar earlier in this code. Or if you'd wanna take up the update process forwebpack
deps.
sure @AdiAkhileshSingh15 I will look into this, in the meantime, you can work on some other dependencies, I will try to resolve them and will share the update with you.
In my most recent commit to the PR #181, I've updated the following dependencies:
devDependencies:
dependencies:
I am working on updating the following dependencies, and will open PR for this soon :
Hi @Abhijay007, Quick heads up: If you skip using 'closes' or 'fixes' in your PR when linking it here, we won't have this issue auto-closing every time, i.m.o. By doing so, @lrasmus won't have to reopen it every time a PR is merged, considering that it's taking multiple PRs to fully address this issue.
Hi @Abhijay007, Quick heads up: If you skip using 'closes' or 'fixes' in your PR when linking it here, we won't have this issue auto-closing every time, i.m.o. By doing so, @lrasmus won't have to reopen it every time a PR is merged, considering that it's taking multiple PRs to fully address this issue.
Thanks for the info @AdiAkhileshSingh15 , I will avoid that in my future PRs
I am working on updating the following dependencies, and will open PR for this soon :
PS: this might take a little longer than my previous/other PRs as these dependencies have some major breaking changes
Note : Created a Different issue to address react upgrade : https://github.com/StatTag/StatWrap/issues/203
Description:
This issue is dedicated to updating the dependencies of the StatWrap project. Regularly updating dependencies is crucial for ensuring the security, stability, and performance of our software. Outdated dependencies can expose our project to security vulnerabilities, compatibility issues, and hindered functionality. By systematically updating our dependencies, we maintain the health and sustainability of our project in the long run.
Objective:
The primary objective of this issue is to identify and update outdated dependencies within our project. Contributors will collaborate to update dependencies to their latest versions, addressing any breaking changes and ensuring compatibility with our project. Each updated dependency should be marked with a ✅ to indicate successful completion.
Steps:
yarn test
and confirm all unit tests still pass. And also visually inspect the program viayarn dev
.Benefits:
List of Dependencies that need to be updated:
Please mark each dependency with a check mark ✅ once it's successfully updated.
Note for contributors: This is an open issue, and needs no assignment. Contributors can just comment below on which dependency they are working on and create a PR for the same.