Skip to content
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

Update our dependencies #1798

Merged
merged 12 commits into from
Mar 27, 2024
Merged

Conversation

tadzik
Copy link
Contributor

@tadzik tadzik commented Mar 19, 2024

Some are held back due to them requiring ESM (to be considered separately). That'd be escape-string-regexp and quick-lru.

jasmine from 4.0 onwards introduces a weird (seemingly) async bug with room setup link endpoint should create a M<--->I link for a channel that has capital letters in it. Afair we're planning to move away from Jasmine anyway, so it's probably not worth spending time on that now.

matrix-bot-sdk is held back due to it dropping nedb, which we still support – perhaps it's the right time to drop it here as well though?

@tadzik tadzik requested a review from a team as a code owner March 19, 2024 11:24
@tadzik tadzik changed the title Tadzik/dependency updates Update our dependencies Mar 19, 2024
@@ -453,7 +453,7 @@ export class PgDataStore implements DataStore, ProvisioningStore {
"server"
],
),
[counter, homeserver || "*", server.domain],
[counter, homeserver || "*", server.domain] as any[],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New version of @types/pg is very generic-happy, and insists on these being an array of a single type. explicitely casting them as any seems like the most sensible option here.

@@ -650,7 +650,7 @@ export class PgDataStore implements DataStore, ProvisioningStore {
if (res.rowCount === 0) {
return undefined;
}
else if (res.rowCount > 1) {
else if (res.rowCount! > 1) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for this sillyness is here: brianc/node-postgres#2967

tadzik added 6 commits March 19, 2024 12:33
Signed-off-by: Tadeusz „tadzik” Sośnierz <tadeusz@sosnierz.com>
Signed-off-by: Tadeusz „tadzik” Sośnierz <tadeusz@sosnierz.com>
Signed-off-by: Tadeusz „tadzik” Sośnierz <tadeusz@sosnierz.com>
Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks sane, but I think we can update matrix-appservice-bridge. Agree with deprecating nedb soon though!

package.json Outdated
@@ -44,47 +44,47 @@
"matrix-appservice-bridge": "^9.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can still update to 10, you just need to add nedb as a dependency :)

@Half-Shot Half-Shot merged commit ef5eb44 into matrix-org:develop Mar 27, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants