Skip to content

Commit cb8d8d2

Browse files
miafan23AlexanderBelokontristen
authored
1.9.2 (#1049)
* Update artifacts (#1045) * Add MD4 shim for Webpack4 on Node18+ (#1046) * Snow icon (#1043) * Add snow icon * Make modifications to snow to align better to iconset (#1047) * Add auto margin left and right classes (#1048) * Add auto margin class * remove mx-auto * move to the layout.css --------- Co-authored-by: SanD <alexander.belokon@mapbox.com> Co-authored-by: Tristen Brown <tristen@users.noreply.github.com>
2 parents 85f6719 + e8abda7 commit cb8d8d2

8 files changed

Lines changed: 53 additions & 8 deletions

File tree

.artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ publisher:
44
- filter: on-branch
55
name: publisher-branches
66
config:
7-
node_version: 14.x
7+
node_version: 18.x
88
site_build_dir: _site
99
npm_build_script: build

CHANGELOG.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
# Changelog
22

3+
## 1.9.2
4+
5+
- [add] Add `ml-auto` and `mr-auto`
6+
7+
## 1.9.1
8+
9+
- [add] Modify `snow` icon
10+
11+
## 1.9.0
12+
13+
- [add] Add `snow` icon
14+
315
## 1.8.4
416

5-
- [add] Add interact icon
17+
- [add] Add `interact` icon
618

719
## 1.8.3
820

9-
- [fix] Fix open-in icon
21+
- [fix] Fix `open-in` icon
1022

1123
## 1.8.2
1224

13-
- [add] Add open-in icon
25+
- [add] Add `open-in` icon
1426

1527
## 1.8.1
1628

batfish.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
require('./src/md4-shim');
4+
35
const path = require('path');
46
// eslint-disable-next-line
57
const navigationStructure = require('./_tmp_assembly/navigation.json');

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mapbox/assembly",
3-
"version": "1.8.4",
3+
"version": "1.9.2",
44
"description": "A CSS framework",
55
"main": "index.js",
66
"files": [

src/layout.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,18 @@
163163
*/
164164

165165
/**
166-
* Set `auto` margins on left and right. This pattern is useful for horizontally centering block elements.
166+
* Set `auto` margins on left and right. This pattern is useful for horizontally centering block elements
167+
* or aligning block elements to the start or end of their container.
167168
*
168169
* @example
169170
* <div class='mx-auto w60 bg-darken10'>mx-auto</div>
171+
* <div class='ml-auto w60 bg-darken10'>ml-auto</div>
172+
* <div class='mr-auto w60 bg-darken10'>mr-auto</div>
170173
* @memberof Margins
171174
*/
172175
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
176+
.ml-auto { margin-left: auto !important; }
177+
.mr-auto { margin-right: auto !important; }
173178

174179
/**
175180
* All padding classes fit the following pattern: `m<side><size>`.

src/md4-shim.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const crypto = require('crypto')
2+
// MD4 algorithm is not available anymore in NodeJS 17+ (because of lib SSL 3).
3+
// https://stackoverflow.com/a/72219174/1447466
4+
// config.output.hashFunction = 'md5'
5+
// is supposed to disables MD4, but it doesn't work correctly until
6+
// https://github.com/webpack/webpack/pull/14306
7+
try {
8+
crypto.createHash('md4')
9+
} catch (e) {
10+
let printed = false
11+
const print = alg => {
12+
if (alg != 'md4') return
13+
if (printed) return
14+
printed = true
15+
console.warn('MD4 is unsupported, replacing it with MD5')
16+
}
17+
const createHash = crypto.createHash
18+
crypto.createHash = (alg, ...params) => {
19+
print(alg)
20+
return createHash(alg == 'md4' ? 'md5' : alg, ...params)
21+
}
22+
}

src/svgs/snow.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)