From 6bb4eabb1af839906a2d27e02446092f3b5b2769 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 13 Sep 2016 10:57:24 -0700 Subject: [PATCH 1/2] Update Express Js Template Versions Part of #1271 This bumps the express templates to use the most recent versions of packages. It also relaxes the version matching to use ^ instead of ~ --- .../ProjectTemplates/AzureExpress4App/package.json | 13 ++++++------- .../ProjectTemplates/Express4App/package.json | 12 ++++++------ .../TypeScriptAzureExpressApp/package.json | 2 +- .../TypeScriptAzureExpressWebRole/package.json | 2 +- .../TypeScriptExpressApp/package.json | 2 +- 5 files changed, 15 insertions(+), 16 deletions(-) diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AzureExpress4App/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/AzureExpress4App/package.json index b36985b7a..3c3cebc1c 100644 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AzureExpress4App/package.json +++ b/Nodejs/Product/Nodejs/ProjectTemplates/AzureExpress4App/package.json @@ -10,12 +10,11 @@ "name": "$username$" }, "dependencies": { - "express": "~4.9.0", - "body-parser": "~1.8.1", - "cookie-parser": "~1.3.3", - "morgan": "~1.3.0", - "serve-favicon": "~2.1.3", - "debug": "~2.0.0", - "pug": "~2.0.0-beta6" + "express": "^4.14.0", + "body-parser": "^1.15.0", + "cookie-parser": "^1.4.0", + "morgan": "^1.7.0", + "serve-favicon": "^2.3.0", + "pug": "^2.0.0-beta6" } } diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/Express4App/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/Express4App/package.json index b36985b7a..a98ce8631 100644 --- a/Nodejs/Product/Nodejs/ProjectTemplates/Express4App/package.json +++ b/Nodejs/Product/Nodejs/ProjectTemplates/Express4App/package.json @@ -10,12 +10,12 @@ "name": "$username$" }, "dependencies": { - "express": "~4.9.0", - "body-parser": "~1.8.1", - "cookie-parser": "~1.3.3", - "morgan": "~1.3.0", - "serve-favicon": "~2.1.3", + "express": "^4.14.0", + "body-parser": "^1.15.0", + "cookie-parser": "^1.4.0", + "morgan": "^1.7.0", + "serve-favicon": "^2.3.0", "debug": "~2.0.0", - "pug": "~2.0.0-beta6" + "pug": "^2.0.0-beta6" } } diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressApp/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressApp/package.json index 59aed10e9..cb61dd763 100644 --- a/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressApp/package.json +++ b/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressApp/package.json @@ -8,6 +8,6 @@ }, "dependencies": { "express": "3.4.4", - "pug": "~2.0.0-beta6" + "pug": "^2.0.0-beta6" } } \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressWebRole/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressWebRole/package.json index 59aed10e9..cb61dd763 100644 --- a/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressWebRole/package.json +++ b/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressWebRole/package.json @@ -8,6 +8,6 @@ }, "dependencies": { "express": "3.4.4", - "pug": "~2.0.0-beta6" + "pug": "^2.0.0-beta6" } } \ No newline at end of file diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/package.json index 59aed10e9..cb61dd763 100644 --- a/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/package.json +++ b/Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/package.json @@ -8,6 +8,6 @@ }, "dependencies": { "express": "3.4.4", - "pug": "~2.0.0-beta6" + "pug": "^2.0.0-beta6" } } \ No newline at end of file From f0f782b022bec09e03aa82829793e5a18071b1a2 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 13 Sep 2016 13:55:13 -0700 Subject: [PATCH 2/2] Reorder deps --- .../Nodejs/ProjectTemplates/AzureExpress4App/package.json | 7 ++++--- .../Nodejs/ProjectTemplates/Express4App/package.json | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/AzureExpress4App/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/AzureExpress4App/package.json index 3c3cebc1c..fb9c0fc43 100644 --- a/Nodejs/Product/Nodejs/ProjectTemplates/AzureExpress4App/package.json +++ b/Nodejs/Product/Nodejs/ProjectTemplates/AzureExpress4App/package.json @@ -10,11 +10,12 @@ "name": "$username$" }, "dependencies": { - "express": "^4.14.0", "body-parser": "^1.15.0", "cookie-parser": "^1.4.0", + "debug": "^2.2.0", + "express": "^4.14.0", "morgan": "^1.7.0", - "serve-favicon": "^2.3.0", - "pug": "^2.0.0-beta6" + "pug": "^2.0.0-beta6", + "serve-favicon": "^2.3.0" } } diff --git a/Nodejs/Product/Nodejs/ProjectTemplates/Express4App/package.json b/Nodejs/Product/Nodejs/ProjectTemplates/Express4App/package.json index a98ce8631..fb9c0fc43 100644 --- a/Nodejs/Product/Nodejs/ProjectTemplates/Express4App/package.json +++ b/Nodejs/Product/Nodejs/ProjectTemplates/Express4App/package.json @@ -10,12 +10,12 @@ "name": "$username$" }, "dependencies": { - "express": "^4.14.0", "body-parser": "^1.15.0", "cookie-parser": "^1.4.0", + "debug": "^2.2.0", + "express": "^4.14.0", "morgan": "^1.7.0", - "serve-favicon": "^2.3.0", - "debug": "~2.0.0", - "pug": "^2.0.0-beta6" + "pug": "^2.0.0-beta6", + "serve-favicon": "^2.3.0" } }