-
Notifications
You must be signed in to change notification settings - Fork 433
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
[8.x] yarn.lock: run yarn upgrade #3311
Conversation
Fix error in lint: > lint/src/util/structure.ts:16:20 - error TS2314: Generic type 'RuleMetaData<MessageIds, Options>' requires 2 type argument(s). > > 16 export type Meta = RuleMetaData<string>;
@alanorth : It's worth noting that I've found that It sounds like that's what you discovered here with |
@tdonohue yarn's dependency solver is only evaluating version metadata from our dependencies using the version strings we specified. So the problem is "ours" in that we may have semver strings that aren't correct, for example because we forgot to upgrade one dependency when upgrading Angular, or because an upstream introduced breaking changes in a minor release (the case of Since 8.0 was recently released I wonder if it's worth doing a |
@alanorth : I'd welcome cleanup of our package.json. But, I was pointing out the So, you are correct that we could improve the It's basically this sort of discussion: https://www.reddit.com/r/npm/comments/17boc2e/to_caret_or_not_to_caret/ Nonetheless, if we can get this cleaned up, I do agree it has the potential to make quick upgrades easier. |
Yeah it's a bit of a slog. Well the issues will come out eventually. The big question is when do we as a project run |
@alanorth : I'd welcome digging into a better bot option. Currently, we are not running "yarn upgrade" frequently...and we tend to only upgrade dependencies when GitHub's But, I'd welcome looking into whether we can have a bot automatically send us bug fix updates as well. |
@alanorth : Regarding the lint error in this PR, we might need to upgrade |
According to the docs we should be using v3.x.x: > * Version 3.x.x is for eslint 8 with @typescript-eslint/eslint-plugin 6 - 7 > * Version 2.x.x is for eslint 8 with @typescript-eslint/eslint-plugin 5 This fixes a lint error. See: https://www.npmjs.com/package/eslint-plugin-unused-imports
Yep, we ran into that on
Renovate is the clear candidate, but it's pretty complex. I will try to have a go at a working configuration in a private fork. |
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.
👍 Thanks @alanorth ! I gave this a local test and verified that nothing seems to have broken. I did a full: yarn clean; yarn install; yarn build:prod; yarn serve:ssr
and everything still is working properly in the User Interface. So, this yarn upgrade
was successful (after those minor fixes were made).
Merging for 8.1
Description
Run
yarn upgrade
to force yarn to re-evaluate semver pins inpackage.json
. This reveals some breaking changes in our dependencies, for example one new lint error due to a much newertypescript-eslint/eslint-plugin
version (7.7.0 → 7.18.0).Instructions for Reviewers
Please add a more detailed description of the changes made by your PR. At a minimum, providing a bulleted list of changes in your PR is helpful to reviewers.
List of changes in this PR:
yarn upgrade
which makes many changes inyarn.lock
Include guidance for how to test or review your PR.
Try to run
yarn install
,yarn lint
, and build the site in dev and prod modes.Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
main
branch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lint
npm run check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.