diff --git a/CHANGELOG.md b/CHANGELOG.md index bdee9864..36830d6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 1.6.3 (not yet released) * ADDED: Detect and report on damaged pastes (#1218) +* CHANGED: Upgrading libraries to: zlib 1.3 ## 1.6.2 (2023-12-15) * FIXED: English not selectable when `languageselection` enabled (#1208) diff --git a/js/common.js b/js/common.js index a1f4421a..7e406acb 100644 --- a/js/common.js +++ b/js/common.js @@ -12,7 +12,7 @@ global.WebCrypto = require('@peculiar/webcrypto').Crypto; // application libraries to test global.$ = global.jQuery = require('./jquery-3.7.0'); global.RawDeflate = require('./rawinflate-0.3').RawDeflate; -global.zlib = require('./zlib-1.2.13-1').zlib; +global.zlib = require('./zlib-1.3').zlib; require('./prettify'); global.prettyPrint = window.PR.prettyPrint; global.prettyPrintOne = window.PR.prettyPrintOne; diff --git a/js/zlib-1.2.13-1.js b/js/zlib-1.3.js similarity index 97% rename from js/zlib-1.2.13-1.js rename to js/zlib-1.3.js index a9760e96..268d0841 100644 --- a/js/zlib-1.2.13-1.js +++ b/js/zlib-1.3.js @@ -26,9 +26,9 @@ let buff; if (typeof fs === 'object') { - buff = fs.readFileSync('zlib-1.2.13.wasm'); + buff = fs.readFileSync('zlib-1.3.wasm'); } else { - const resp = await fetch('js/zlib-1.2.13.wasm'); + const resp = await fetch('js/zlib-1.3.wasm'); buff = await resp.arrayBuffer(); } const module = await WebAssembly.compile(buff); diff --git a/js/zlib-1.2.13.wasm b/js/zlib-1.3.wasm similarity index 99% rename from js/zlib-1.2.13.wasm rename to js/zlib-1.3.wasm index 145060df..c954fbd4 100644 Binary files a/js/zlib-1.2.13.wasm and b/js/zlib-1.3.wasm differ diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index be24e666..a307c4e7 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -55,7 +55,7 @@ if ($ZEROBINCOMPATIBILITY) : - + diff --git a/tpl/page.php b/tpl/page.php index c00462c9..fa70097a 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -34,7 +34,7 @@ if ($ZEROBINCOMPATIBILITY): - +