Repository navigation
chore: update npm dependencies (minor/patch, vitest 5, dotenv 18) - #1063
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 602a461 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Updates 46 packages to their latest minor/patch releases across the monorepo. jsdom stays on ~30.0.1: with 30.1.1, vitest 4's jsdom compatibility shim (makeCompatBlob) reads a removed Blob internal and FormData requests fail in the UI tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
dotenv 18 removed .env.vault and -r preloading, which we don't use. 'dotenv/config' and config() work as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each send function called transporter.use('compile', hbs(...)) on the
module-level transporter, so every email added another copy of the
plugin and later emails ran the template compile step once per earlier
send. Register the plugin once, next to createTransport, in backend,
worker and scoper. All call sites used the same options.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- vitest, @vitest/coverage-v8 and @vitest/ui 4.1 -> 5.0. - vitest 5 clears mocks before each test by default. Tests that checked calls made at module import (Redis clients, mailer transporter and plugin, scoper entry point) now reset modules and import inside the test, with vi.hoisted mocks shared across imports. - jest-dom 7.0.1's vitest types augment the old Assertion<T> and no longer merge with vitest 5's Assertion<R, T>, so its matchers vanished from tsc (testing-library/jest-dom#738). apps/ui now augments Matchers<R, T> in src/test/jest-dom-vitest.d.ts until jest-dom ships a fix (#742). - rateLimiterKeys.test.ts now listens once per limiter instead of letting supertest start a server for every request. With this update set that intermittently hung or reset connections (about 15% of isolated runs); 30/30 pass now. - jsdom stays on ~30.0.1. jsdom 30.1 no longer exposes Blob's impl symbol, which vitest's FormData/Blob shim depends on (vitest-dev/vitest#11336, still broken in 5.0.2). Co-Authored-By: Claude Opus 5.5 <[email protected]>
dsclassen
force-pushed
the
chore/update-deps-2026-09
branch
from
September 28, 2026 21:24
02ee363 to
7ed8a86
Compare
These packages used the root's typescript without declaring it. On a fresh install, pnpm filled msw's optional typescript peer with the latest release (7.0.2) there, which made a second vitest 5.0.2 variant. The UI tests then loaded two vitest copies (runner from one, expect from the other), and every .rejects.toThrow(message) failed with 'Cannot read properties of undefined (reading indexOf)'. This passed locally only because the old node_modules resolved to a single copy. Declaring typescript ^6.0.3 leaves one vitest variant and no TS 7 in the lockfile. Co-Authored-By: Claude Opus 5.5 <[email protected]>
3 of 4 tasks
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.
Summary
Dependency sweep across the monorepo. Each commit is self-contained:
.env.vaultandnode -r dotenv/configpreloading, which we don't use. I checkedimport 'dotenv/config'anddotenv.config()at runtime in backend, worker and scoper.send*Emailfunction calledtransporter.use('compile', hbs(...))on the module-level transporter. Each email added another copy of the plugin, and later emails ran the template compile once per earlier send. The plugin is now registered once, next tocreateTransport, in backend, worker and scoper. All call sites used identical options.vitest,@vitest/coverage-v8,@vitest/ui):clearMocks: false: tests that check import-time behaviour (Redis clients, the mailer transporter and plugin, the scoper entry point) now callvi.resetModules()and import inside the test, withvi.hoistedmocks shared across imports.Assertion<T>, which doesn't merge with vitest 5'sAssertion<R, T>, sotoBeInTheDocumentand the other matchers disappeared fromtsc(Vitest 5: matcher types are lost —Assertion<T>augmentation no longer merges with Vitest'sAssertion<R, T>testing-library/jest-dom#738).apps/ui/src/test/jest-dom-vitest.d.tsaugmentsMatchers<R, T>instead. Delete it once feat: support vitest 5 testing-library/jest-dom#742 is released.rateLimiterKeys.test.tsintermittently hung or failed withsocket hang upwith this update set: about 15% of isolated runs, versus 51/51 onmain. It passed the bare app to supertest, which starts and stops a server for every request. It now listens once per limiter: 30/30 pass.Held back
typescript >=4.8.4 <6.1.0, and TS 7 no longer exports the JS compiler API that typescript-eslint uses.nodemailer-express-handlebars' plugin type (@types/nodemailer-express-handlebarsis built on@types/nodemailer), and that package hasn't been updated since 2024. None of v10's fixes affect us.~30.0.1)Test plan
pnpm lint,pnpm build,pnpm testall pass: backend 633, worker 347, scoper 93, ui 1239, md-utils 102, mongodb-schema 3 (+9 skipped)rateLimiterKeys.test.tsrun 30× in isolation, no failures🤖 Generated with Claude Code