diff --git a/.artifacts.yml b/.artifacts.yml index 728ae656..720dbb09 100644 --- a/.artifacts.yml +++ b/.artifacts.yml @@ -4,6 +4,6 @@ publisher: - filter: on-branch name: publisher-branches config: - node_version: 14.x + node_version: 18.x site_build_dir: _site npm_build_script: build diff --git a/CHANGELOG.md b/CHANGELOG.md index cbed13e6..85eb0836 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,28 @@ # Changelog +## 1.9.2 + +- [add] Add `ml-auto` and `mr-auto` + +## 1.9.1 + +- [add] Modify `snow` icon + +## 1.9.0 + +- [add] Add `snow` icon + ## 1.8.4 -- [add] Add interact icon +- [add] Add `interact` icon ## 1.8.3 -- [fix] Fix open-in icon +- [fix] Fix `open-in` icon ## 1.8.2 -- [add] Add open-in icon +- [add] Add `open-in` icon ## 1.8.1 diff --git a/batfish.config.js b/batfish.config.js index 23e45692..33b0ae9b 100644 --- a/batfish.config.js +++ b/batfish.config.js @@ -1,5 +1,7 @@ 'use strict'; +require('./src/md4-shim'); + const path = require('path'); // eslint-disable-next-line const navigationStructure = require('./_tmp_assembly/navigation.json'); diff --git a/package-lock.json b/package-lock.json index 9e3547ea..23f2adfe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mapbox/assembly", - "version": "1.8.4", + "version": "1.9.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mapbox/assembly", - "version": "1.8.4", + "version": "1.9.2", "license": "ISC", "dependencies": { "autoprefixer": "^10.2.5", diff --git a/package.json b/package.json index 5626366d..66543401 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mapbox/assembly", - "version": "1.8.4", + "version": "1.9.2", "description": "A CSS framework", "main": "index.js", "files": [ diff --git a/src/layout.css b/src/layout.css index cf7a998e..a58a416c 100644 --- a/src/layout.css +++ b/src/layout.css @@ -163,13 +163,18 @@ */ /** - * Set `auto` margins on left and right. This pattern is useful for horizontally centering block elements. + * Set `auto` margins on left and right. This pattern is useful for horizontally centering block elements + * or aligning block elements to the start or end of their container. * * @example *
mx-auto
+ *
ml-auto
+ *
mr-auto
* @memberof Margins */ .mx-auto { margin-left: auto !important; margin-right: auto !important; } +.ml-auto { margin-left: auto !important; } +.mr-auto { margin-right: auto !important; } /** * All padding classes fit the following pattern: `m`. diff --git a/src/md4-shim.js b/src/md4-shim.js new file mode 100644 index 00000000..22af51b9 --- /dev/null +++ b/src/md4-shim.js @@ -0,0 +1,22 @@ +const crypto = require('crypto') +// MD4 algorithm is not available anymore in NodeJS 17+ (because of lib SSL 3). +// https://stackoverflow.com/a/72219174/1447466 +// config.output.hashFunction = 'md5' +// is supposed to disables MD4, but it doesn't work correctly until +// https://github.com/webpack/webpack/pull/14306 +try { + crypto.createHash('md4') +} catch (e) { + let printed = false + const print = alg => { + if (alg != 'md4') return + if (printed) return + printed = true + console.warn('MD4 is unsupported, replacing it with MD5') + } + const createHash = crypto.createHash + crypto.createHash = (alg, ...params) => { + print(alg) + return createHash(alg == 'md4' ? 'md5' : alg, ...params) + } +} diff --git a/src/svgs/snow.svg b/src/svgs/snow.svg new file mode 100644 index 00000000..6d6af987 --- /dev/null +++ b/src/svgs/snow.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file