Skip to content

Releases: curbengh/hexo-yam

v8.0.0

13 Nov 00:43
6c6060f
Compare
Choose a tag to compare

Breaking change

  • chore(deps): bump svgo from 2.8.0 to 3.0.0 #135
    • svgo v3 introduced some breaking changes.
    • Notably cleanupIDs plugin has been renamed to cleanupIds
    minify:
      svg:
        plugins:
          # new
          cleanupIds: true
          # old
          cleanupIDs: true

Feature

  • ci(tester): add node 19 #137

Housekeeping

  • ci: semgrep init #133 #133
  • chore(deps-dev): bump jest from 28.1.3 to 29.1.2 5453fc9

v7.0.0

17 May 01:03
077055e
Compare
Choose a tag to compare
  • Breaking change: Drop Node 12 & 17
  • Add Node 18

v6.0.0

20 Oct 09:10
d8e6969
Compare
Choose a tag to compare

Breaking change

  • [c0041b0] svg.plugins: option should be the following syntax:
minify:
  svg:
    plugins:
# v6
+      removeComments: false
+      cleanupIDs: false
+      builtinPluginName:
+        optionName: 'optionValue'

# v5
-      - name: 'removeComments'
-        active: false
-      - name: 'cleanupIDs'
-        active: false

# v4
-      - removeComments: false
-      - cleanupIDs: false

The option only overrides svgo's default plugins, other (svgo) options are not supported.

  • [#84] Support Node 17
    • Drop Node 15

v5.0.0

02 May 06:29
be96f15
Compare
Choose a tag to compare

Breaking change

  • Require Node 12.13 [#52]
    • Drop Node 10
  • Update svg.plugins option to follow svgo v2 syntax [#51]
minify:
  svg:
    plugins:
-      - removeComments: false
-      - cleanupIDs: false

+      - name: 'removeComments'
+        active: false
+      - name: 'cleanupIDs'
+        active: false

Feature

  • Add support of Node 15 [#33] and 16 [#52]

Dependencies

  • bump svgo from 1.3.2 to 2.3.0 [#51]
  • bump clean-css from 4.2.3 to 5.1.2 [#49]
  • bump standard from 14.3.4 to 16.0.1 [#32]
  • bump actions/setup-node from v1 to v2.1.1 [#26]

v4.2.0

06 Sep 00:13
0fd2ed3
Compare
Choose a tag to compare

Feature

  • feat: utilise better minify-xml [#25]
  • feat: show path that caused the error [51cc9b1]
    • plugin now shows the offending file whenever a minifier throws error

Fix

  • chore(deps): update terser from 4.0.0 to 5.3.0 [605c5fd]
    • terser v5 is async only [16cdf46]
  • refactor(test): set default config in individual test [ce8c4a1]
    • default configs are no longer module-exported

Housekeeping

  • chore: replace deprecated greenkeeper with dependabot [7f60c69]
    • greenkeeper has moved to snyk
  • chore(deps-dev): update hexo from 4.2.0 to 5.1.1 [d9817f8]

v4.1.0

03 Jan 02:55
b9f4cd6
Compare
Choose a tag to compare

Feature

  • Minify json and xml by removing whitespaces [fdcdbef] [317b5e4]
    • Both are disabled by default
    • JSON is usually already minified
    • XML could become invalid after being minified, recommend to check with an XML validator
    • To enable:
    minify:
      json:
        enable: true
      xml:
        enable: true

Fix

  • Skip empty file [d75b10b]
    • Empty file could crash hexo if left unchecked

v4.0.0

02 Jan 01:08
ab69db2
Compare
Choose a tag to compare

Breaking change

  • Requires Node 10.18 or above [f0b37aa]

    • Drop EOL Node 8
    • Drop iltorb dependency
  • Rename "logger:" option to "verbose:" [440b9cc]

    • Migrate:
    minify:
      html:
    -    logger: true
    +    verbose: true

Feature

  • Disable basename by individual pattern [b046d2a] [50d80cc]
  • Custom compression level for gzip and brotli [48868bf]
    • Set lower level to speed up compression process, but the resulting file may be slightly bigger (compared to higher level)
    • This plugin default to max level
    • Example:
    minify:
      gzip:
        level: 1 # defaults to 9
      brotli:
        level: 1 # defaults to 11

Housekeeping

v3.2.3

16 Dec 08:49
0c270a4
Compare
Choose a tag to compare

Fix

  • Use the faster + operator (instead of Array.push()) to read from stream 7eda55a

Refactor

  • Use object literal shorthand syntax 1fdac53

v3.2.2

09 Nov 07:31
89a6dce
Compare
Choose a tag to compare

Fix

  • fix(js): remove 'priority' option 2548eb2

Refactor

  • refactor: destructure object de425e4

v3.2.1

13 Oct 10:43
85bfd3b
Compare
Choose a tag to compare

Fix

  • fix: svgo error due to incorrect array join() (213700a)