Skip to content

Commit

Permalink
Upgrade frontend and backend dependencies (microsoft#1207)
Browse files Browse the repository at this point in the history
Upgrade all dependencies, except for SK and KM. 
Apply also security upgrades to frontend.
Fix scripts and documentation still pointing to .NET 7.
  • Loading branch information
dluc authored Nov 10, 2024
1 parent 326646c commit 046c539
Show file tree
Hide file tree
Showing 8 changed files with 2,242 additions and 2,330 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ You will need the following items to run the sample:
.\Install.ps1
```

> NOTE: This script will install `Chocolatey`, `dotnet-7.0-sdk`, `nodejs`, and `yarn`.
> NOTE: This script will install `Chocolatey`, `dotnet-8.0-sdk`, `nodejs`, and `yarn`.
> 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).
Expand Down Expand Up @@ -111,7 +111,7 @@ You will need the following items to run the sample:
./install-apt.sh
```

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

Expand Down Expand Up @@ -362,7 +362,7 @@ Backend authentication via Azure AD must be enabled. Detailed instructions for e
# Update and install dotnet
sudo apt update;
sudo apt install --assume-yes dotnet-sdk-7.0;
sudo apt install --assume-yes dotnet-sdk-8.0;
```
# A note on branches
Expand Down
6 changes: 3 additions & 3 deletions plugins/web-searcher/WebSearcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

<ItemGroup>
<!-- Make sure the app is thoroughly tested after any Microsoft.Azure.Functions.* package updates. -->
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.2.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi" Version="1.5.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.13.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.18.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.18.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.23.0" />
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.11.20">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
# Install the requirements
sudo apt update;
sudo apt install yarn -y;
sudo apt install dotnet-sdk-7.0 -y;
sudo apt install dotnet-sdk-8.0 -y;
sudo apt install nodejs -y;

echo ""
Expand Down
2 changes: 1 addition & 1 deletion tools/importdocument/ImportDocument.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.65.0" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.66.1" />
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.11.20">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
6 changes: 3 additions & 3 deletions webapi/CopilotChatWebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<ItemGroup>
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.3.2" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.44.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="2.20.0" />
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.45.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="2.21.1" />
<PackageReference Include="Microsoft.KernelMemory.Abstractions" Version="0.66.240709.1" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.15.1" />
<PackageReference Include="Microsoft.SemanticKernel.Abstractions" Version="1.15.1" />
Expand All @@ -34,7 +34,7 @@
<PackageReference Include="Microsoft.SemanticKernel.Plugins.OpenApi" Version="1.5.0-alpha" />
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" Version="1.5.0-alpha" />
<PackageReference Include="SharpToken" Version="2.0.3" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions webapi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// # Secrets
// Consider populating secrets, such as "Key" and "ConnectionString" properties, using dotnet's user-secrets command when running locally.
// https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-7.0&tabs=windows#secret-manager
// https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-8.0&tabs=windows#secret-manager
// Values in user secrets and (optionally) Key Vault take precedence over those in this file.
//
{
Expand Down Expand Up @@ -397,4 +397,4 @@
// (i.e. dotnet user-secrets set "APPLICATIONINSIGHTS_CONNECTION_STRING" "MY_APPINS_CONNSTRING")
//
"APPLICATIONINSIGHTS_CONNECTION_STRING": null
}
}
20 changes: 12 additions & 8 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,26 @@
"eject": "react-scripts eject"
},
"dependencies": {
"@azure/msal-browser": "^3.26.1",
"@azure/msal-react": "^2.0.22",
"@fluentui/react-components": "^9.54.13",
"@fluentui/react-icons": "^2.0.258",
"@fluentui/react-northstar": "^0.66.4",
"@azure/msal-browser": "^3.27.0",
"@azure/msal-react": "^2.2.0",
"@fluentui/react-components": "^9.55.1",
"@fluentui/react-icons": "^2.0.265",
"@fluentui/react-northstar": "^0.66.5",
"@microsoft/signalr": "^8.0.7",
"@playwright/test": "^1.46.1",
"@reduxjs/toolkit": "^2.2.7",
"@reduxjs/toolkit": "^2.3.0",
"debug": "^4.3.7",
"microsoft-cognitiveservices-speech-sdk": "^1.40.0",
"microsoft-cognitiveservices-speech-sdk": "^1.41.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown": "^9.0.1",
"react-redux": "^9.1.2",
"remark-gfm": "^4.0.0"
},
"resolutions": {
"postcss": ">=8.4.31",
"nth-check": ">=2.0.1"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@types/debug": "^4.1.12",
Expand Down Expand Up @@ -59,4 +63,4 @@
]
},
"packageManager": "[email protected]"
}
}
Loading

0 comments on commit 046c539

Please sign in to comment.