Repository: Azure/azure-functions-durable-js
Pull request #375 (2022-08-02 00:35:39)

Update ts and pass audit
The CI has been failing with Node16 apparently due to some unmet dependency of ts-doc, which required a newer version of the typescript dev-dependency.

This PR updates our typescript dev-dependency, and also performs an `npm audit fix`

davidmrdavid: @hossam-nasr: FYI

Try running a CI on `dev` and you'll see that it fails due to some conflict on Node16.  The step that's failing is `npm ci`.
This PR fixes that step, but now we fail at the building/testing stage

Patch:
diff --git a/package-lock.json b/package-lock.json
index 374a8e4..8e1c180 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -45,7 +45,7 @@
                 "sinon": "~7.1.1",
                 "ts-node": "^10.0.0",
                 "typedoc": "^0.22.11",
-                "typescript": "^3.8.3"
+                "typescript": "~4.5.0"
             },
             "engines": {
                 "node": ">=6.5.0"
@@ -2271,9 +2271,9 @@
             "dev": true
         },
         "node_modules/moment": {
-            "version": "2.29.2",
-            "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.2.tgz",
-            "integrity": "sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg==",
+            "version": "2.29.4",
+            "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
+            "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
             "engines": {
                 "node": "*"
             }
@@ -3096,9 +3096,9 @@
             }
         },
         "node_modules/typescript": {
-            "version": "3.8.3",
-            "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz",
-            "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==",
+            "version": "4.5.5",
+            "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz",
+            "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==",
             "dev": true,
             "bin": {
                 "tsc": "bin/tsc",
@@ -4955,9 +4955,9 @@
             }
         },
         "moment": {
-            "version": "2.29.2",
-            "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.2.tgz",
-            "integrity": "sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg=="
+            "version": "2.29.4",
+            "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
+            "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w=="
         },
         "ms": {
             "version": "2.0.0",
@@ -5536,9 +5536,9 @@
             }
         },
         "typescript": {
-            "version": "3.8.3",
-            "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz",
-            "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==",
+            "version": "4.5.5",
+            "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz",
+            "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==",
             "dev": true
         },
         "uri-js": {
diff --git a/package.json b/package.json
index 5648519..81eadc0 100644
--- a/package.json
+++ b/package.json
@@ -75,7 +75,7 @@
         "sinon": "~7.1.1",
         "ts-node": "^10.0.0",
         "typedoc": "^0.22.11",
-        "typescript": "^3.8.3"
+        "typescript": "~4.5.0"
     },
     "engines": {
         "node": ">=6.5.0"


Test patch:
diff --git a/test/testobjects/testentities.ts b/test/testobjects/testentities.ts
index 4e6aa0f..b8fb8e0 100644
--- a/test/testobjects/testentities.ts
+++ b/test/testobjects/testentities.ts
@@ -44,7 +44,7 @@ export class TestEntities {
     });
 
     public static AsyncStringStore = df.entity<string>(async (context) => {
-        await new Promise((resolve) => setTimeout(() => resolve(), 0)); // force onto the event loop and result in a no-op delay
+        await new Promise<void>((resolve) => setTimeout(() => resolve(), 0)); // force onto the event loop and result in a no-op delay
         switch (context.df.operationName) {
             case "set":
                 context.df.setState(context.df.getInput() || "");