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

Add node 20 as a hidden and preview Functions app stack #7291

Merged
merged 8 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions server/src/stacks/2020-10-01/stacks/function-app-stacks/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,74 @@ const getNodeStack: (useIsoDateFormat: boolean) => FunctionAppStack = (useIsoDat
const node10EOL = getDateString(new Date(2021, 3, 30), useIsoDateFormat);
const node8EOL = getDateString(new Date(2019, 11, 31), useIsoDateFormat);
const node6EOL = getDateString(new Date(2019, 3, 30), useIsoDateFormat);
const node20EOL = getDateString(new Date(2026, 4, 30), useIsoDateFormat);
const node18EOL = getDateString(new Date(2025, 3, 30), useIsoDateFormat);
const node16EOL = getDateString(new Date(2023, 8, 11), useIsoDateFormat);
const node14EOL = getDateString(new Date(2023, 3, 30), useIsoDateFormat);


return {
displayText: 'Node.js',
value: 'node',
preferredOs: 'windows',
majorVersions: [
{
displayText: 'Node.js 20',
value: '20',
minorVersions: [
{
displayText: 'Node.js 20',
value: '20',
stackSettings: {
windowsRuntimeSettings: {
runtimeVersion: '~20',
isPreview: true,
isHidden: true,
remoteDebuggingSupported: false,
appInsightsSettings: {
isSupported: true,
},
gitHubActionSettings: {
isSupported: true,
supportedVersion: '20.x',
},
appSettingsDictionary: {
FUNCTIONS_WORKER_RUNTIME: 'node',
WEBSITE_NODE_DEFAULT_VERSION: '~20',
},
siteConfigPropertiesDictionary: {
use32BitWorkerProcess: true,
netFrameworkVersion: 'v6.0',
},
supportedFunctionsExtensionVersions: ['~4'],
endOfLifeDate: node20EOL,
},
linuxRuntimeSettings: {
runtimeVersion: 'Node|20',
isPreview: true,
isHidden: true,
remoteDebuggingSupported: false,
appInsightsSettings: {
isSupported: true,
},
gitHubActionSettings: {
isSupported: true,
supportedVersion: '20.x',
},
appSettingsDictionary: {
FUNCTIONS_WORKER_RUNTIME: 'node',
},
siteConfigPropertiesDictionary: {
use32BitWorkerProcess: false,
linuxFxVersion: 'Node|20',
},
supportedFunctionsExtensionVersions: ['~4'],
hossam-nasr marked this conversation as resolved.
Show resolved Hide resolved
endOfLifeDate: node20EOL,
},
},
},
],
},
{
displayText: 'Node.js 18',
value: '18',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function validateNodeStack(nodeStack) {
expect(nodeStack.displayText).to.equal('Node.js');
expect(nodeStack.value).to.equal('node');
expect(nodeStack.preferredOs).to.equal('windows');
expect(nodeStack.majorVersions.length).to.equal(7);
expect(nodeStack.majorVersions.length).to.equal(8);
expect(nodeStack).to.deep.equal(hardCodedNodeStack);
}

Expand Down