Repository navigation
Clean up CI deprecation warnings - #10
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Actionable deprecation cleanup. No behaviour change, no dependency churn beyond one line of the lockfile.
1. GitHub Actions on Node 24
Your suggested target was v5 for all three. I checked each
action.ymlrather than assuming, andv5 would not have worked for one of them:
checkoutsetup-nodeupload-artifactupload-artifact@v5is still Node 20, so it would have left the warning in place. The minimum majorthat actually clears it is v6. Applied:
Latest majors are v7 for all three; I used the minimum that resolves the deprecation rather than
jumping two majors for no benefit.
2. Mongoose
newoption14 occurrences, all verified by hand to sit inside a
findOneAndUpdateoptions object — no blindreplacement, no unrelated
newproperties touched:services/progressService.js,reviewQueueService.js,backgroundJobService.jscontrollers/library,flashcard,notification,quizworker.js(durable attempt claim)new: true→returnDocument: "after", which is the documented replacement and semanticallyidentical. No
findOneAndReplaceorfindByIdAndUpdateoption sites existed, andfindByIdAndUpdatein
flashcardService.jspasses no options object, so it was left alone.Nine test assertions updated with them. Four suites assert on the exact options object — e.g.
reviewQueueService.test.jsexpects{ upsert: true, returnDocument: "after" }— so leaving thetests alone would have failed them. That is also how I caught a miss: my first pass omitted
worker.js, andattemptProcessing.test.jsfailed on the real call still sending{ new: true }. Theexhaustive sweep now finds zero
new: trueanywhere in the backend.Verified by execution, not assumption: the warning count in the integration run and in the E2E run
— where it was previously loudest — is now 0 in both.
3. Browserslist
caniuse-lite1.0.30001727 → 1.0.30001814 viaupdate-browserslist-db@latest. Reported"No target browser changes", and
package.jsonis untouched (the tool installs then removes its owntemporary dependency entries).
The entire lockfile diff is one line — a single package version. No unrelated churn.
Deliberately not touched
Too many index builds running simultaneously— test-environment informationalbehaviour; indexes complete afterwards. Changing index definitions would solve the wrong problem.
punycode/url.parse()— emitted by GitHub's artifact-upload tooling, not our code.Dependency overrides to silence them would be worse than the log noise.
Verification
npm run typechecknpm run buildnpm run lintnewwarnings (integration / E2E)E2E behaviour is identical to before, as required.