You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* updates to make 2.0 worker 1.0 compatible
* split validation logic so it's both v1 and v2 compatible
* hard-coded solution to camelCase timer trigger while proper fix is out of scope for timeline
* added test
* adding unit test
* properly convert data when defined as output array
* testing both v1 behavior and v2 behavior
* dont code without intellisense
* remove e2e test until have better test on functions host v2 and v3
* fix worker validation logic and warning message on ts changes
* add tests
Copy file name to clipboardExpand all lines: src/WorkerChannel.ts
+16-7Lines changed: 16 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -99,13 +99,11 @@ export class WorkerChannel implements IWorkerChannel {
99
99
// Validate version
100
100
letversion=process.version;
101
101
if(this._v1WorkerBehavior){
102
-
if(version.startsWith("v12."))
103
-
{
102
+
if(version.startsWith("v12.")){
104
103
systemWarn("The Node.js version you are using ("+version+") is not fully supported with Azure Functions V2. We recommend using one the following major versions: 8, 10.");
105
104
}
106
105
}else{
107
-
if(version.startsWith("v8."))
108
-
{
106
+
if(version.startsWith("v8.")){
109
107
letmsg="Incompatible Node.js version. The version you are using ("+version+") is not supported with Azure Functions V3. Please use one of the following major versions: 10, 12.";
110
108
systemError(msg);
111
109
throwmsg;
@@ -192,10 +190,22 @@ export class WorkerChannel implements IWorkerChannel {
0 commit comments