Repository: twbs/bootlint
Pull request #433 (2019-01-10 14:03:37)

Update CURRENT_BOOTSTRAP_VERSION to 3.4.0
We should probably release a new patch or minor version after this, not sure which one.


Patch:
diff --git a/src/bootlint.js b/src/bootlint.js
index 95b5b09..4e44b9b 100644
--- a/src/bootlint.js
+++ b/src/bootlint.js
@@ -34,7 +34,7 @@ var LocationIndex = _location.LocationIndex;
     var NUM2SCREEN = ['xs', 'sm', 'md', 'lg'];
     var IN_NODE_JS = Boolean(cheerio.load);
     var MIN_JQUERY_VERSION = '1.9.1'; // as of Bootstrap v3.3.0
-    var CURRENT_BOOTSTRAP_VERSION = '3.3.7';
+    var CURRENT_BOOTSTRAP_VERSION = '3.4.0';
     var BOOTSTRAP_VERSION_4 = '4.0.0';
     var PLUGINS = [
         'affix',


Test patch:
diff --git a/test/bootlint_test.js b/test/bootlint_test.js
index a05740d..9330583 100644
--- a/test/bootlint_test.js
+++ b/test/bootlint_test.js
@@ -688,16 +688,16 @@ exports.bootlint = {
     'outdated version of Bootstrap': function (test) {
         test.expect(5);
         test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-css.html')),
-            ['Bootstrap version might be outdated. Latest version is at least 3.3.7 ; saw what appears to be usage of Bootstrap 3.2.0'],
+            ['Bootstrap version might be outdated. Latest version is at least 3.4.0 ; saw what appears to be usage of Bootstrap 3.2.0'],
             'should complain about outdated bootstrap.css.');
         test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-min-css.html')),
-            ['Bootstrap version might be outdated. Latest version is at least 3.3.7 ; saw what appears to be usage of Bootstrap 3.2.0'],
+            ['Bootstrap version might be outdated. Latest version is at least 3.4.0 ; saw what appears to be usage of Bootstrap 3.2.0'],
             'should complain about outdated bootstrap.min.css.');
         test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-js.html')),
-            ['Bootstrap version might be outdated. Latest version is at least 3.3.7 ; saw what appears to be usage of Bootstrap 3.2.0'],
+            ['Bootstrap version might be outdated. Latest version is at least 3.4.0 ; saw what appears to be usage of Bootstrap 3.2.0'],
             'should complain about outdated bootstrap.js.');
         test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-min-js.html')),
-            ['Bootstrap version might be outdated. Latest version is at least 3.3.7 ; saw what appears to be usage of Bootstrap 3.2.0'],
+            ['Bootstrap version might be outdated. Latest version is at least 3.4.0 ; saw what appears to be usage of Bootstrap 3.2.0'],
             'should complain about outdated bootstrap.min.js.');
         test.deepEqual(lintHtml(utf8Fixture('outdated/bootstrap-extensions-okay.html')),
             [],
diff --git a/test/fixtures/outdated/bootstrap-css.html b/test/fixtures/outdated/bootstrap-css.html
index 93b5420..bad18c2 100644
--- a/test/fixtures/outdated/bootstrap-css.html
+++ b/test/fixtures/outdated/bootstrap-css.html
@@ -20,7 +20,7 @@
     <body>
         <div id="qunit"></div>
         <ol id="bootlint">
-            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.7 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
+            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.4.0 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
         </ol>
     </body>
 </html>
diff --git a/test/fixtures/outdated/bootstrap-js.html b/test/fixtures/outdated/bootstrap-js.html
index b95fe70..0b98779 100644
--- a/test/fixtures/outdated/bootstrap-js.html
+++ b/test/fixtures/outdated/bootstrap-js.html
@@ -20,7 +20,7 @@
     <body>
         <div id="qunit"></div>
         <ol id="bootlint">
-            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.7 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
+            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.4.0 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
         </ol>
     </body>
 </html>
diff --git a/test/fixtures/outdated/bootstrap-min-css.html b/test/fixtures/outdated/bootstrap-min-css.html
index b02c6aa..0d12ff5 100644
--- a/test/fixtures/outdated/bootstrap-min-css.html
+++ b/test/fixtures/outdated/bootstrap-min-css.html
@@ -20,7 +20,7 @@
     <body>
         <div id="qunit"></div>
         <ol id="bootlint">
-            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.7 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
+            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.4.0 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
         </ol>
     </body>
 </html>
diff --git a/test/fixtures/outdated/bootstrap-min-js.html b/test/fixtures/outdated/bootstrap-min-js.html
index 181efdf..48429ac 100644
--- a/test/fixtures/outdated/bootstrap-min-js.html
+++ b/test/fixtures/outdated/bootstrap-min-js.html
@@ -20,7 +20,7 @@
     <body>
         <div id="qunit"></div>
         <ol id="bootlint">
-            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.7 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
+            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.4.0 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
         </ol>
     </body>
 </html>
diff --git a/test/fixtures/outdated/js-version-not-in-url-current.html b/test/fixtures/outdated/js-version-not-in-url-current.html
index 31fc6a2..fafe0a7 100644
--- a/test/fixtures/outdated/js-version-not-in-url-current.html
+++ b/test/fixtures/outdated/js-version-not-in-url-current.html
@@ -14,7 +14,7 @@
         <script src="../../../node_modules/jquery/dist/jquery.min.js"></script>
         <script>
         (function () {
-            window.$.fn.modal = { Constructor: { VERSION: '3.3.7' } };
+            window.$.fn.modal = { Constructor: { VERSION: '3.4.0' } };
         })();
         </script>
         <script src="../../../node_modules/qunit/qunit/qunit.js"></script>
diff --git a/test/fixtures/outdated/js-version-not-in-url-outdated.html b/test/fixtures/outdated/js-version-not-in-url-outdated.html
index 59d4a0e..1cd3952 100644
--- a/test/fixtures/outdated/js-version-not-in-url-outdated.html
+++ b/test/fixtures/outdated/js-version-not-in-url-outdated.html
@@ -24,7 +24,7 @@
     <body>
         <div id="qunit"></div>
         <ol id="bootlint">
-            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.3.7 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
+            <li data-lint="Bootstrap version might be outdated. Latest version is at least 3.4.0 ; saw what appears to be usage of Bootstrap 3.2.0"></li>
         </ol>
     </body>
 </html>