Explorar el Código

Update jQuery version

Gaël Métais hace 5 años
padre
commit
de8e444aba
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 3 1
      lib/metadata/policies.js
  2. 1 1
      package.json

+ 3 - 1
lib/metadata/policies.js

@@ -276,7 +276,7 @@ var policies = {
     },
     "jQueryVersion": {
         "label": "jQuery version",
-        "message": "<p>The current latest version of jQuery is 3.3</p><p>Each new version of jQuery optimizes performances. Do not keep an old version of jQuery. Updating can sometimes break a few things, but it is generally quite easy to fix them up. So don't hesitate.</p>",
+        "message": "<p>The current latest version of jQuery is 3.4</p><p>Each new version of jQuery optimizes performances. Do not keep an old version of jQuery. Updating can sometimes break a few things, but it is generally quite easy to fix them up. So don't hesitate.</p>",
         "hasOffenders": false,
         "scoreFn": function(data) {
             var differentVersions = data.toolsResults.phantomas.metrics.jQueryVersionsLoaded;
@@ -291,6 +291,8 @@ var policies = {
                 if (value.indexOf('3.3.') === 0 ||
                     value.indexOf('3.4.') === 0 ||
                     value.indexOf('3.5.') === 0 ||
+                    value.indexOf('3.6.') === 0 ||
+                    value.indexOf('3.7.') === 0 ||
                     value.indexOf('4.0.') === 0) {
                     score = 100;
                 } else if (value.indexOf('3.2.') === 0) {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "yellowlabtools",
-  "version": "1.13.3",
+  "version": "1.13.4",
   "description": "Online tool to audit a webpage for performance and front-end quality issues",
   "license": "GPL-2.0",
   "author": {