Merge pull request #52 from curbengh/node-16

release: 5.0.0
This commit is contained in:
Ming Di Leom 2021-05-02 15:45:10 +09:30 committed by GitHub
commit be96f15ceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 16 deletions

View File

@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
- name: Use Node.js 14.x
uses: actions/setup-node@v2.1.5
with:
node-version: '12.x'
node-version: '14.x'
- name: Cache NPM dependencies
uses: actions/cache@v2.1.4
with:

View File

@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
- name: Use Node.js 14.x
uses: actions/setup-node@v2.1.5
with:
node-version: '12.x'
node-version: '14.x'
- name: Install Dependencies
run: npm install
- name: Run Snyk to check for vulnerabilities

View File

@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ['10', '12', '14', '15']
node-version: ['12', '14', '15', '16']
fail-fast: false
steps:
- uses: actions/checkout@v2
@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['12.x']
node-version: ['14.x']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}

View File

@ -13,7 +13,7 @@ Yet Another Minifier for Hexo. Minify and compress HTML, JS, CSS, SVG, XML and J
## Table of contents
- [Version 4](#version-4)
- [Version 5](#version-5)
- [Installation](#installation)
- [Options](#options)
- [HTML](#html)
@ -27,16 +27,20 @@ Yet Another Minifier for Hexo. Minify and compress HTML, JS, CSS, SVG, XML and J
- [Globbing](#globbing)
- [HTTP Compression](#http-compression)
## Version 4
In v4, `logger:` option has been renamed to `verbose:`
Migrate:
## Version 5
In v5, `svg.plugins:` option should follow svgo v2+ syntax:
``` diff
minify:
html:
- logger: true
+ verbose: true
svg:
plugins:
- - removeComments: false
- - cleanupIDs: false
+ - name: 'removeComments'
+ active: false
+ - name: 'cleanupIDs'
+ active: false
```
## Installation

View File

@ -1,7 +1,7 @@
{
"name": "hexo-yam",
"description": "Yet Another Minifier. Minify and compress html, js, css, svg, xml and json",
"version": "4.2.0",
"version": "5.0.0",
"readme": "README.md",
"main": "index.js",
"directories": {
@ -16,7 +16,7 @@
"test": "jest"
},
"engines": {
"node": ">= 10.18.0"
"node": ">= 12.13.0"
},
"author": "curben",
"license": "MIT",