Skip to content

Commit 046c539

Browse files
authored
Upgrade frontend and backend dependencies (#1207)
Upgrade all dependencies, except for SK and KM. Apply also security upgrades to frontend. Fix scripts and documentation still pointing to .NET 7.
1 parent 326646c commit 046c539

File tree

8 files changed

+2242
-2330
lines changed

8 files changed

+2242
-2330
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You will need the following items to run the sample:
5252
.\Install.ps1
5353
```
5454

55-
> NOTE: This script will install `Chocolatey`, `dotnet-7.0-sdk`, `nodejs`, and `yarn`.
55+
> NOTE: This script will install `Chocolatey`, `dotnet-8.0-sdk`, `nodejs`, and `yarn`.
5656
5757
> NOTE: If you receive an error that the script is not digitally signed or cannot execute on the system, you may need to [change the execution policy](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3#change-the-execution-policy) (see list of [policies](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3#powershell-execution-policies) and [scopes](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3#execution-policy-scope)) or [unblock the script](https://learn.microsoft.com/powershell/module/microsoft.powershell.security/get-executionpolicy?view=powershell-7.3#example-4-unblock-a-script-to-run-it-without-changing-the-execution-policy).
5858
@@ -111,7 +111,7 @@ You will need the following items to run the sample:
111111
./install-apt.sh
112112
```
113113

114-
> NOTE: This script uses `apt` to install `dotnet-sdk-7.0`, `nodejs`, and `yarn`.
114+
> NOTE: This script uses `apt` to install `dotnet-sdk-8.0`, `nodejs`, and `yarn`.
115115
116116
**macOS**
117117

@@ -362,7 +362,7 @@ Backend authentication via Azure AD must be enabled. Detailed instructions for e
362362
363363
# Update and install dotnet
364364
sudo apt update;
365-
sudo apt install --assume-yes dotnet-sdk-7.0;
365+
sudo apt install --assume-yes dotnet-sdk-8.0;
366366
```
367367
368368
# A note on branches

plugins/web-searcher/WebSearcher.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
<ItemGroup>
1111
<!-- Make sure the app is thoroughly tested after any Microsoft.Azure.Functions.* package updates. -->
12-
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
12+
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.2.0" />
1313
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi" Version="1.5.1" />
14-
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.13.0" />
15-
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.18.0" />
14+
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.18.1" />
15+
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.23.0" />
1616
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.11.20">
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

scripts/install-apt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
1919
# Install the requirements
2020
sudo apt update;
2121
sudo apt install yarn -y;
22-
sudo apt install dotnet-sdk-7.0 -y;
22+
sudo apt install dotnet-sdk-8.0 -y;
2323
sudo apt install nodejs -y;
2424

2525
echo ""

tools/importdocument/ImportDocument.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<ItemGroup>
1919
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
2020
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
21-
<PackageReference Include="Microsoft.Identity.Client" Version="4.65.0" />
21+
<PackageReference Include="Microsoft.Identity.Client" Version="4.66.1" />
2222
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.11.20">
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

webapi/CopilotChatWebApi.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<ItemGroup>
2222
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.3.2" />
2323
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
24-
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.44.0" />
25-
<PackageReference Include="Microsoft.Identity.Web" Version="2.20.0" />
24+
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.45.0" />
25+
<PackageReference Include="Microsoft.Identity.Web" Version="2.21.1" />
2626
<PackageReference Include="Microsoft.KernelMemory.Abstractions" Version="0.66.240709.1" />
2727
<PackageReference Include="Microsoft.SemanticKernel" Version="1.15.1" />
2828
<PackageReference Include="Microsoft.SemanticKernel.Abstractions" Version="1.15.1" />
@@ -34,7 +34,7 @@
3434
<PackageReference Include="Microsoft.SemanticKernel.Plugins.OpenApi" Version="1.5.0-alpha" />
3535
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" Version="1.5.0-alpha" />
3636
<PackageReference Include="SharpToken" Version="2.0.3" />
37-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
37+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
3838
</ItemGroup>
3939

4040
<ItemGroup>

webapi/appsettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
// # Secrets
88
// Consider populating secrets, such as "Key" and "ConnectionString" properties, using dotnet's user-secrets command when running locally.
9-
// https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-7.0&tabs=windows#secret-manager
9+
// https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-8.0&tabs=windows#secret-manager
1010
// Values in user secrets and (optionally) Key Vault take precedence over those in this file.
1111
//
1212
{
@@ -397,4 +397,4 @@
397397
// (i.e. dotnet user-secrets set "APPLICATIONINSIGHTS_CONNECTION_STRING" "MY_APPINS_CONNSTRING")
398398
//
399399
"APPLICATIONINSIGHTS_CONNECTION_STRING": null
400-
}
400+
}

webapp/package.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,26 @@
1515
"eject": "react-scripts eject"
1616
},
1717
"dependencies": {
18-
"@azure/msal-browser": "^3.26.1",
19-
"@azure/msal-react": "^2.0.22",
20-
"@fluentui/react-components": "^9.54.13",
21-
"@fluentui/react-icons": "^2.0.258",
22-
"@fluentui/react-northstar": "^0.66.4",
18+
"@azure/msal-browser": "^3.27.0",
19+
"@azure/msal-react": "^2.2.0",
20+
"@fluentui/react-components": "^9.55.1",
21+
"@fluentui/react-icons": "^2.0.265",
22+
"@fluentui/react-northstar": "^0.66.5",
2323
"@microsoft/signalr": "^8.0.7",
2424
"@playwright/test": "^1.46.1",
25-
"@reduxjs/toolkit": "^2.2.7",
25+
"@reduxjs/toolkit": "^2.3.0",
2626
"debug": "^4.3.7",
27-
"microsoft-cognitiveservices-speech-sdk": "^1.40.0",
27+
"microsoft-cognitiveservices-speech-sdk": "^1.41.0",
2828
"react": "^18.3.1",
2929
"react-dom": "^18.3.1",
3030
"react-markdown": "^9.0.1",
3131
"react-redux": "^9.1.2",
3232
"remark-gfm": "^4.0.0"
3333
},
34+
"resolutions": {
35+
"postcss": ">=8.4.31",
36+
"nth-check": ">=2.0.1"
37+
},
3438
"devDependencies": {
3539
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
3640
"@types/debug": "^4.1.12",
@@ -59,4 +63,4 @@
5963
]
6064
},
6165
"packageManager": "[email protected]"
62-
}
66+
}

0 commit comments

Comments
 (0)