Skip to content

Commit 88bc4d6

Browse files
authored
Update Node.js Worker to 2.1.0 (#6956)
* Update Node.js Worker to 2.1.0 and support index.mjs through these means for now * update release notes
1 parent 12fff58 commit 88bc4d6

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-->
55
- Update Python Worker Version to [1.1.10](https://github.com/Azure/azure-functions-python-worker/releases/tag/1.1.10)
66
- Configure host.json to use workflow when creating a default host.json and app is identified as a logic app. (#6810)
7-
7+
- Update Node.js Worker Version to [2.1.0](https://github.com/Azure/azure-functions-nodejs-worker/releases/tag/v2.1.0)
88

99
**Release sprint:** Sprint 89
1010
[ [bugs](https://github.com/Azure/azure-functions-host/issues?q=is%3Aissue+milestone%3A%22Functions+Sprint+89%22+label%3Abug+is%3Aclosed) | [features](https://github.com/Azure/azure-functions-host/issues?q=is%3Aissue+milestone%3A%22Functions+Sprint+89%22+label%3Afeature+is%3Aclosed) ]

src/WebJobs.Script/Host/FunctionMetadataProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,11 @@ internal static string DeterminePrimaryScriptFile(string scriptFile, string scri
240240
{
241241
// if there is a "run" file, that file is primary,
242242
// for Node, any index.js file is primary
243+
// TODO #6955: Get default function file name from language worker configs
243244
functionPrimary = functionFiles.FirstOrDefault(p =>
244245
fileSystem.Path.GetFileNameWithoutExtension(p).ToLowerInvariant() == "run" ||
245-
fileSystem.Path.GetFileName(p).ToLowerInvariant() == "index.js");
246+
fileSystem.Path.GetFileName(p).ToLowerInvariant() == "index.js" ||
247+
fileSystem.Path.GetFileName(p).ToLowerInvariant() == "index.mjs");
246248
}
247249
}
248250

src/WebJobs.Script/WebJobs.Script.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<PackageReference Include="Microsoft.AspNetCore.Http.Features" Version="3.1.0" />
4242
<PackageReference Include="Microsoft.Azure.AppService.Proxy.Client" Version="2.0.11020001-fabe022e" />
4343
<PackageReference Include="Microsoft.Azure.Functions.JavaWorker" Version="1.8.0" />
44-
<PackageReference Include="Microsoft.Azure.Functions.NodeJsWorker" Version="2.0.6" />
44+
<PackageReference Include="Microsoft.Azure.Functions.NodeJsWorker" Version="2.1.0" />
4545
<PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS6" Version="3.0.557" />
4646
<PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7" Version="3.0.560" />
4747
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.26" />

test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.1.0" />
3939
<PackageReference Include="Microsoft.Azure.DocumentDB.Core" Version="2.10.0" />
4040
<PackageReference Include="Microsoft.Azure.EventHubs" Version="2.1.0" />
41-
<PackageReference Include="Microsoft.Azure.Functions.NodeJsWorker" Version="2.0.6" />
41+
<PackageReference Include="Microsoft.Azure.Functions.NodeJsWorker" Version="2.1.0" />
4242
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="4.0.3" />
4343
<PackageReference Include="Microsoft.Azure.Functions.JavaWorker" Version="1.8.0" />
4444
<PackageReference Include="Microsoft.Azure.Mobile.Client" Version="4.0.2" />

0 commit comments

Comments
 (0)