This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Codebase cleanup: dependency updates, CI hardening, and lint/type fixes#22
Merged
Codebase cleanup: dependency updates, CI hardening, and lint/type fixes#22
Conversation
Centralize Matrix SDK imports behind a local compatibility module, migrate matrix subpath imports to the boundary, and switch to the $types alias. Upgrade TypeScript to latest so matrix-js-sdk typings resolve correctly before the next cleanup phase.
Adopt matrix event-map augmentation and Element-style typed boundaries for account data, and build message edit content with explicit replacement event types. Also make read receipt and fully_read marker sends independent with explicit failure handling.
Revert the generic account-data typing introduced in 346a32c to keep these developer tools string-based for now. Add explicit temporary casts/TODOs where the Matrix event map currently requires narrower types so stricter typing can return in a follow-up PR.
This reverts commit bfd792e.
This partially reverts 67aa895 by keeping the major tooling/infra upgrades, but rolling most runtime dependency bumps back to safer/minor ranges with targeted compatibility fixes.
Upgrade i18next to v25 so react-i18next v16 can import keyFromSelector during Vite dependency optimization. This resolves the build failure introduced by the i18next downgrade.
Move @vanilla-extract/vite-plugin back from devDependencies to dependencies and pin it to the v3 line to avoid a major dependency jump.
Use a caret range for html-dom-parser v5 and pin @types/node to 24.10.13 to align with the current Node 24 toolchain expectation.
…oogle Fonts import
7w1
approved these changes
Feb 26, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description
I was really annoyed with all the type errors in the codebase, so I started fixing them but then I kept going and cleanup rest of the codebase as well. I know this is a bit much but I thought I might as well.
These are the major changes, everything else is a minor update, so it should be safe.
Major Upgrades
Added
Removed
I've also included a script to normalize the imports, which should help with merge conflicts.
Also worth considering moving to Oxlint and Oxfmt but probably as separate PRs. (I can do it if there is interest)
Type of change
Checklist: