From 500d1a62df0bb2ad9519e688ebd730845a0fadb5 Mon Sep 17 00:00:00 2001 From: Joris Willems Date: Thu, 11 Feb 2016 20:39:11 +0100 Subject: [PATCH] feat(config): upgrade to angular 1.5 Update bower dependencies to more recent versions. Resolved hard-coded dependency by updating file upload PhantomJs to 2.x series for tests (@usta) Fix assertion in tests for compatibility with MongoDB 3.2 (@rhutchison) Improve coding style tests to avoid type errors (@ilanbiala) Fix refresh showing flash of scrollbar in menu Remove deprecated angular-ui-utils Fixes #1124 --- bower.json | 22 ++++----- config/assets/default.js | 3 +- config/assets/production.js | 3 +- modules/core/client/app/config.js | 2 +- .../core/client/views/header.client.view.html | 2 +- .../client/socket.io.client.service.tests.js | 47 +++++++++++++------ .../tests/server/user.server.routes.tests.js | 10 +++- package.json | 4 +- 8 files changed, 56 insertions(+), 37 deletions(-) diff --git a/bower.json b/bower.json index 633c55b09b..7c4c8ca223 100644 --- a/bower.json +++ b/bower.json @@ -4,19 +4,15 @@ "homepage": "http://meanjs.org/", "license": "MIT", "dependencies": { - "angular": "~1.3", - "angular-animate": "~1.3", - "angular-bootstrap": "~1.0", - "angular-file-upload": "1.1.5", - "angular-messages": "~1.3.17", - "angular-mocks": "~1.3", - "angular-resource": "~1.3", - "angular-ui-router": "~0.2", - "angular-ui-utils": "bower", - "bootstrap": "~3", + "angular": "~1.5.0", + "angular-animate": "~1.5.0", + "angular-bootstrap": "~1.2.1", + "angular-file-upload": "~2.2.0", + "angular-messages": "~1.5.0", + "angular-mocks": "~1.5.0", + "angular-resource": "~1.5.0", + "angular-ui-router": "~0.2.18", + "bootstrap": "~3.3.6", "owasp-password-strength-test": "~1.3.0" - }, - "resolutions": { - "angular": "~1.3" } } diff --git a/config/assets/default.js b/config/assets/default.js index bb9d2142c0..6f6426cd41 100644 --- a/config/assets/default.js +++ b/config/assets/default.js @@ -13,9 +13,8 @@ module.exports = { 'public/lib/angular-animate/angular-animate.js', 'public/lib/angular-messages/angular-messages.js', 'public/lib/angular-ui-router/release/angular-ui-router.js', - 'public/lib/angular-ui-utils/ui-utils.js', 'public/lib/angular-bootstrap/ui-bootstrap-tpls.js', - 'public/lib/angular-file-upload/angular-file-upload.js', + 'public/lib/angular-file-upload/dist/angular-file-upload.js', 'public/lib/owasp-password-strength-test/owasp-password-strength-test.js' ], tests: ['public/lib/angular-mocks/angular-mocks.js'] diff --git a/config/assets/production.js b/config/assets/production.js index e7a381a18a..c151fb5fa6 100644 --- a/config/assets/production.js +++ b/config/assets/production.js @@ -13,9 +13,8 @@ module.exports = { 'public/lib/angular-animate/angular-animate.min.js', 'public/lib/angular-messages/angular-messages.min.js', 'public/lib/angular-ui-router/release/angular-ui-router.min.js', - 'public/lib/angular-ui-utils/ui-utils.min.js', 'public/lib/angular-bootstrap/ui-bootstrap-tpls.min.js', - 'public/lib/angular-file-upload/angular-file-upload.min.js', + 'public/lib/angular-file-upload/dist/angular-file-upload.min.js', 'public/lib/owasp-password-strength-test/owasp-password-strength-test.js' ] }, diff --git a/modules/core/client/app/config.js b/modules/core/client/app/config.js index 10e0588cb7..07a9cd7ce2 100644 --- a/modules/core/client/app/config.js +++ b/modules/core/client/app/config.js @@ -4,7 +4,7 @@ var ApplicationConfiguration = (function () { // Init module configuration options var applicationModuleName = 'mean'; - var applicationModuleVendorDependencies = ['ngResource', 'ngAnimate', 'ngMessages', 'ui.router', 'ui.bootstrap', 'ui.utils', 'angularFileUpload']; + var applicationModuleVendorDependencies = ['ngResource', 'ngAnimate', 'ngMessages', 'ui.router', 'ui.bootstrap', 'angularFileUpload']; // Add a new vertical module var registerModule = function (moduleName, dependencies) { diff --git a/modules/core/client/views/header.client.view.html b/modules/core/client/views/header.client.view.html index 39ccd1c13f..42b3d79cb1 100644 --- a/modules/core/client/views/header.client.view.html +++ b/modules/core/client/views/header.client.view.html @@ -8,7 +8,7 @@ MEAN.JS -