Skip to content
Merged

1.9.2 #1049

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 15 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 2 additions & 0 deletions batfish.config.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mapbox/assembly",
"version": "1.8.4",
"version": "1.9.2",
"description": "A CSS framework",
"main": "index.js",
"files": [
Expand Down
7 changes: 6 additions & 1 deletion src/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <div class='mx-auto w60 bg-darken10'>mx-auto</div>
* <div class='ml-auto w60 bg-darken10'>ml-auto</div>
* <div class='mr-auto w60 bg-darken10'>mr-auto</div>
* @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<side><size>`.
Expand Down
22 changes: 22 additions & 0 deletions src/md4-shim.js
Original file line number Diff line number Diff line change
@@ -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)
}
}
4 changes: 4 additions & 0 deletions src/svgs/snow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.