-
Notifications
You must be signed in to change notification settings - Fork 612
upgrade dependencies to reduce deprecation warnings #5043
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
base: main
Are you sure you want to change the base?
Conversation
"form-data": "^4.0.4", | ||
"mocha": "^10.7.3", | ||
"nyc": "^15.1.0", | ||
"replace-in-file": "^6.1.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.
wasn't used
@@ -132,15 +132,15 @@ | |||
"xregexp": "^2.0.0" | |||
}, | |||
"devDependencies": { | |||
"eslint-config-apostrophe": "^5.0.0", | |||
"eslint": "^9.34.0", | |||
"eslint-config-apostrophe": "github:apostrophecms/eslint-config-apostrophe#pro-8109-upgrade-dependencies", |
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.
TODO: use version 6 when apostrophecms/eslint-config-apostrophe#22 is merged
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 sounds accurate.
@@ -121,7 +121,7 @@ | |||
"tiny-emitter": "^2.1.0", | |||
"tough-cookie": "^4.0.0", | |||
"underscore.string": "^3.3.4", | |||
"uploadfs": "^1.24.3", | |||
"uploadfs": "github:apostrophecms/uploadfs#pro-8109-upgrade-dependencies", |
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.
TODO: use version 6 when apostrophecms/uploadfs#103 is merged
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 think you meant to say we can go back to depending on npm after uploadfs is published. And that it will use gcs 7, not 6.
Flagging we have to do this before publishing.
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.
exactly, sorry,
TODO: use version 1.25.1*
scripts/great-renaming.js
Outdated
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.
Unused file that included replace-in-file
dependency, which was not used either in this file
eslint.config.js
Outdated
globalIgnores([ | ||
'**/vendor/**/*.js', | ||
'**/blueimp/**/*.js', | ||
'**/node_modules', | ||
'test/public', | ||
'test/apos-build', | ||
'coverage' | ||
]), |
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 the way to ignore files now... https://eslint.org/docs/latest/use/configure/ignore
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.
Ok, but why having it at project level and not in the global config?
My take is that we shouldn't introduce project level configuration. We already spent time refactoring this and it might make future migration to monorepos easier.
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 only moved these from the deleted .gitignore
file: https://github.com/apostrophecms/apostrophe/pull/5043/files#diff-a0fdacd2ade87c5238dde44378f574f7e123e669acdf8b740878b14b33b20275
I suggest we'll do this work in a separate PRs in order to scope that
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.
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 have added data
and apos-build
to the globalIgnore in eslint-config-apostrophe
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.
Should not have removed rules like max-len
.
eslint.config.js
Outdated
globalIgnores([ | ||
'**/vendor/**/*.js', | ||
'**/blueimp/**/*.js', | ||
'**/node_modules', | ||
'test/public', | ||
'test/apos-build', | ||
'coverage' | ||
]), |
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.
Ok, but why having it at project level and not in the global config?
My take is that we shouldn't introduce project level configuration. We already spent time refactoring this and it might make future migration to monorepos easier.
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.
See comments above.
- Missing rules
- Specific config (everything should be in global).
Summary
Following deprecation warnings fixed ✅ :
eslint
(viaeslint-config-apostrophe
)@humanwhocodes/object-schema
google-p12-pem
(viauploadfs
)Couldn't fix these ❌ :
inflight
: brought byglob
vianyc
at its most up to date version:Note that upgrading mocha did reduce the usage of
inflight
because latest version is usingglob
10.glob
7: still too widely used by other dependenciesrimraf
3: still used bynyc
at its latest versionquerystring
: brought byaws-sdk
at its most up to date version:before
after
What are the specific steps to test this change?
For example:
What kind of change does this PR introduce?
(Check at least one)
Make sure the PR fulfills these requirements:
If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.
Other information: