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 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js 12.x - name: Use Node.js 14.x
uses: actions/setup-node@v2.1.5 uses: actions/setup-node@v2.1.5
with: with:
node-version: '12.x' node-version: '14.x'
- name: Cache NPM dependencies - name: Cache NPM dependencies
uses: actions/cache@v2.1.4 uses: actions/cache@v2.1.4
with: with:

View File

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

View File

@ -8,7 +8,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ['10', '12', '14', '15'] node-version: ['12', '14', '15', '16']
fail-fast: false fail-fast: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -33,7 +33,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
node-version: ['12.x'] node-version: ['14.x']
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - 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 ## Table of contents
- [Version 4](#version-4) - [Version 5](#version-5)
- [Installation](#installation) - [Installation](#installation)
- [Options](#options) - [Options](#options)
- [HTML](#html) - [HTML](#html)
@ -27,16 +27,20 @@ Yet Another Minifier for Hexo. Minify and compress HTML, JS, CSS, SVG, XML and J
- [Globbing](#globbing) - [Globbing](#globbing)
- [HTTP Compression](#http-compression) - [HTTP Compression](#http-compression)
## Version 4 ## Version 5
In v4, `logger:` option has been renamed to `verbose:` In v5, `svg.plugins:` option should follow svgo v2+ syntax:
Migrate:
``` diff ``` diff
minify: minify:
html: svg:
- logger: true plugins:
+ verbose: true - - removeComments: false
- - cleanupIDs: false
+ - name: 'removeComments'
+ active: false
+ - name: 'cleanupIDs'
+ active: false
``` ```
## Installation ## Installation

View File

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