diff --git a/package.json b/package.json index 0b90a904ab..23fa012afe 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "nodebb", "license": "GPL-3.0", "description": "NodeBB Forum", - "version": "0.7.3-dev", + "version": "0.7.3", "homepage": "http://www.nodebb.org", "repository": { "type": "git", @@ -45,7 +45,7 @@ "nodebb-plugin-emoji-extended": "0.4.9", "nodebb-plugin-markdown": "4.0.4", "nodebb-plugin-mentions": "1.0.0", - "nodebb-plugin-soundpack-default": "0.1.2", + "nodebb-plugin-soundpack-default": "0.1.3", "nodebb-plugin-spam-be-gone": "0.4.1", "nodebb-rewards-essentials": "0.0.3", "nodebb-theme-lavender": "1.0.49", diff --git a/src/meta/dependencies.js b/src/meta/dependencies.js index 8baa5b5fdf..bd08191c8f 100644 --- a/src/meta/dependencies.js +++ b/src/meta/dependencies.js @@ -29,7 +29,7 @@ module.exports = function(Meta) { var pkgData = JSON.parse(pkgData), ok = semver.satisfies(pkgData.version, pkg.dependencies[module]); - if (ok || pkgData._resolved.indexOf('//github.com') != -1) { + if (ok || (pkgData._resolved && pkgData._resolved.indexOf('//github.com') !== -1)) { next(true); } else { process.stdout.write('[' + 'outdated'.yellow + '] ' + module.bold + ' v' + pkgData.version + ', requires ' + pkg.dependencies[module] + '\n') diff --git a/src/plugins.js b/src/plugins.js index d2a726096b..046809e76e 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -31,6 +31,7 @@ var fs = require('fs'), Plugins.clientScripts = []; Plugins.customLanguages = []; Plugins.libraryPaths = []; + Plugins.versionWarning = []; Plugins.initialized = false; @@ -74,6 +75,7 @@ var fs = require('fs'), Plugins.libraries = {}; Plugins.loadedHooks = {}; Plugins.staticDirs = {}; + Plugins.versionWarning = []; Plugins.cssFiles.length = 0; Plugins.lessFiles.length = 0; Plugins.clientScripts.length = 0; @@ -106,6 +108,16 @@ var fs = require('fs'), }); }, function(next) { + // If some plugins are incompatible, throw the warning here + if (Plugins.versionWarning.length) { + process.stdout.write('\n'); + winston.warn('[plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.'); + for(var x=0,numPlugins=Plugins.versionWarning.length;x