Skip to content

Commit 41f390a

Browse files
committed
Update third party npm dependencies.
The following dependencies are updated: * @fortawesome/fontawesome-free: 6.52 -> 7.0.0 * bootstrap: 5.3.3 -> 5.3.7 * iframe-resizer: 4.3.11 -> 4.4.2 * jquery-ui-dist: 1.13.2 -> 1.13.3 * luxon: 3.4.4 -> 3.7.1 * sortablejs: 1.15.2 -> 1.15.6 * autoprefixer: 10.4.19 -> 10.4.21 * chokidar: 3.6.0 -> 4.0.3 * cssnano: 6.1.2 -> 7.1.0 * postcss: 8.4.38 -> 8.5.6 * prettier: 3.2.5 -> 3.6.2 * rtlcss: 4.1.1 -> 4.3.0 * sass: 1.75.0 -> 1.90.0 * terser: 5.30.4 -> 5.43.1 * yargs: 17.7.2 -> 18.0.0 All libraries except for `iframe-resizer` are at their latest versions. The `iframe-resizer` library has changed considerably and upgrading to the latest version requires quite a few changes. Furthermore, they now have a commercial license version (which requires purchase) and an open source license version. We can use the open source version, but there are some annoying things that they do with that (like console logs that you can't prevent). I have chosen the last version available before things went haywire and `iframe-resizer` started doing stupid things. Note that the there are two changes to the the generate-assets.js script that were needed. There is a change in how yargs is used, and an option needed to be added to the `sass.compile` call to disable warnings about deprecated sass usage in Bootstrap's scss.
1 parent de0407a commit 41f390a

File tree

3 files changed

+1444
-1010
lines changed

3 files changed

+1444
-1010
lines changed

htdocs/generate-assets.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
/* eslint-env node */
44

5-
const yargs = require('yargs');
5+
const yargs = require('yargs/yargs');
6+
const { hideBin } = require('yargs/helpers');
67
const chokidar = require('chokidar');
78
const path = require('path');
89
const { minify } = require('terser');
@@ -14,7 +15,7 @@ const postcss = require('postcss');
1415
const rtlcss = require('rtlcss');
1516
const cssMinify = require('cssnano');
1617

17-
const argv = yargs
18+
const argv = yargs(hideBin(process.argv))
1819
.usage('$0 Options')
1920
.version(false)
2021
.alias('help', 'h')
@@ -110,7 +111,11 @@ const processFile = async (file, _details) => {
110111
// This works for both sass/scss files and css files.
111112
let result;
112113
try {
113-
result = sass.compile(filePath, { sourceMap: argv.enableSourcemaps });
114+
result = sass.compile(filePath, {
115+
sourceMap: argv.enableSourcemaps,
116+
// Silence warnings about bootstrap usage of deprecated sass methods.
117+
silenceDeprecations: ['import', 'global-builtin', 'color-functions']
118+
});
114119
} catch (e) {
115120
console.log(`\x1b[31mIn ${file}:`);
116121
console.log(`${e.message}\x1b[0m`);

0 commit comments

Comments
 (0)