Skip to content

Commit

Permalink
SF-2588 Update MongoDB drivers and other dependencies (#2368)
Browse files Browse the repository at this point in the history
* Update .NET dependencies
* Update MongoDB Client and some low risk Realtime Server dependencies
* Update to .NET 8.0.4
* Update Serval.Client to 1.3.1
  • Loading branch information
pmachapman authored Apr 23, 2024
1 parent 2dbfd66 commit 77f1217
Show file tree
Hide file tree
Showing 17 changed files with 6,872 additions and 1,957 deletions.
2 changes: 1 addition & 1 deletion scripts/db_tools/db-token-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function run() {
showJwt(jwt);
console.log(`refresh_token: ${userSecrets!.paratextTokens.refreshToken}`);
} finally {
client.close();
await client.close();
}
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/db_tools/find-problem-cids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ProblemCidFinder {
}
}
} finally {
client.close();
await client.close();
(conn as any).close();
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/db_tools/manage-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Program {
const db: Db = client.db();
await activity(conn, db);
} finally {
client.close();
await client.close();
(conn as any).close();
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/db_tools/manipulate-sharedb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Program {
const db: Db = client.db();
await activity(conn, db);
} finally {
client.close();
await client.close();
(conn as any).close();
}
}
Expand Down
4,010 changes: 3,204 additions & 806 deletions scripts/db_tools/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/db_tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@sillsdev/scripture": "^1.4.0",
"ajv": "^8.12.0",
"ajv-bsontype": "^1.0.7",
"axios": "^0.27.2",
"axios": "^1.6.7",
"mongodb": "^4.6.0",
"ot-json0": "^1.1.0",
"rich-text": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/db_tools/show-projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class ProjectInquirer {
);
}
} finally {
client.close();
await client.close();
(conn as any).close();
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/db_tools/trigger-resources-need-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Program {
const db: Db = client.db();
await activity(conn, db);
} finally {
client.close();
await client.close();
(conn as any).close();
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/db_tools/validate-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class ValidateData {
}
}
} finally {
client.close();
await client.close();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Help/UpdateHelp/UpdateHelp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.11.58" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.60" />
</ItemGroup>
</Project>
Loading

0 comments on commit 77f1217

Please sign in to comment.