chenzhutian / hexo-all-minifier

A plugin for Hexo that optimizes HTML, CSS, JS and imagages, and it can optionally deploys your blog.
MIT License
275 stars 30 forks source link

Update hexo to the latest version 🚀 #86

Closed greenkeeper[bot] closed 4 years ago

greenkeeper[bot] commented 4 years ago

The devDependency hexo was updated from 3.9.0 to 4.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: curben License: MIT

Release Notes for 4.0.0

Breaking change

  • chore: drop Node 6 #3598
  • fix post_link, asset_link when title contains unescaped html charaters #3704
    • Affects asset_link, post_link tag plugins
    • If you want to retain unescaped characters, set false to the final argument {% asset_link 'filename 'title' 'false' %}
  • fix: encode permalink by default #3708
    • If you currently use encodeURI(post.permalink) (including permalink of page, tag & category variables), there are three options:
      1. Use encodeURI(decodeURI(post.permalink)) for backward-compatibility with hexo v3.9 (and older)
      2. Use encodeURL() function provided by hexo-util, it is backward-compatible
      3. Drop encodeURI() function, this breaks backward-compatibility
    • If you want to use the variables in decoded form,
    • This change does not apply to this.url variable.
  • fix(paginator): add escape option for compatibility with hexo-util@1.3.0 #3728
    • Theme devs, if you customize prev_text/next_text with html (e.g. to insert icons), you need to set escape: false in the parameter.

Feature

  • feat(filter): use existing excerpt if possible #3612

  • switch minimatch to micromatch #3538

  • feat: add option to disable meta generator tag #3653

    • Add meta_generator: false to config to disable
  • feat(generator): allow limit parallel generation #3665

    • If you experience "Out of memory" issue, try lowering the value in hexo g --concurrency <number>
  • Option to use date instead of file mtime for updated date #3235

    • If you prefer not to use file modification time in the post.updated variable, set use_date_for_updated: true in config
  • feat(list_tags): add Schema "keywords" and Microdata "tag" #3678

  • feat(permalink_variable): add pretty_urls option to remove index.html from url #3691

    • Use the following config to remove the trailing index.html from permalink variables
    pretty_urls:
      trailing_index: false
    • Does not apply to this.url variable (see #3661).
    • Should be compatible with existing canonical-related plugins, recommend plugin and theme devs to test
  • feat: add full_url_for helper #3701

    • use this helper full_url_for(page.path) instead of config.url + page.path
  • fix: external_link should use after_render #3675

    • added field and exclude options, see #3675 for guide.

Performance

  • perf(meta_generator): drop cheerio #3671
  • perf(open_graph): drop cheerio and use regex #3680
  • perf(external_link): drop cheerio and use regex #3685
  • perf(cache): enforce caching across modes #3756

Fix

  • fix: set english as default #3654
  • Use filename when title is not specified in the front-matter #3672
  • fix: ignore categories / tags with zero posts #3624
  • fix(open_graph): remove index.html from url #3661
  • fix(open_graph): remove duplicate twitter card tags #3668
  • fix(helpers, tag plugins): encode url by default #3710
    • Refer to #3708 for guide on decoding.
  • fix(open_graph): percent-encode url, not html escape #3686
  • fix: Allow backtick code block in "blockquote" tag plugin #2321
  • fix: Correct processing of backtick code block on blockquote #3765
  • fix: prevent inserting extra new line character into the end of backtick code block #3768

Dependency

  • chore(deps): update tildify requirement from ^1.2.0 to ^2.0.0 #3541
  • chore(deps): update strip-indent requirement from ^2.0.0 to ^3.0.0 #3534
  • chore(deps-dev): update husky requirement from ^1.1.3 to ^3.0.0 #3608
  • chore(deps-dev): update eslint requirement from ^5.9.0 to ^6.0.1 #3606
  • chore(deps-dev): update lint-staged requirement from ^8.1.0 to ^9.1.0 #3615
  • chore: update to hexo-util@1.0.1 and hexo-renderer-marked@2.0.0 #3646
  • chore(deps): update hexo-i18n requirement from ^0.2.1 to ^1.0.0 #3698
  • chore(deps): update hexo-fs requirement from ^1.0.0 to ^2.0.0 #3699
  • chore(deps): update hexo-front-matter requirement from ^0.2.3 to ^1.0.0 #3700
  • chore(deps): update hexo-log requirement from ^0.2.0 to ^1.0.0 #3730
  • chore(deps): update warehouse requirement from ^2.2.0 to ^3.0.0 #3736
  • chore(deps): bump hexo-cli from 2.0.0 to 3.0.0 #3743
Commits

The new version differs by 185 commits.

  • 9662366 Merge pull request #3695 from curbengh/4.0.0
  • ac03b72 Merge pull request #3768 from seaoak/bugfix/backtick_code_block_on_blockquote_always_terminates_the_blockquote_block
  • 84c4c66 Disable to insert extra new line character into the end of backtick code block (fix #3767)
  • 6b329e9 Merge pull request #3765 from seaoak/feature/correct_filter_backtick_code_block_on_blockquote
  • deaad6b docs(backtick_code): mention PR #3765
  • 894408a Correct processing of backtick code block on blockquote (fix Issue#2969)
  • 6bf6e98 release: 4.0.0
  • 79bdc95 fix(#2318): allow backtick code block in "blockquote" tag plugin (#2321)
  • bd70086 Merge pull request #3760 from seaoak/bugfix/test-of-box-fails-on-race-condition
  • e61116a Merge pull request #3761 from curbengh/warehouse-3-0-1
  • e353f46 Fix up potential race condition in test cases of "box" (fix #3759)
  • 6f6084c perf(cache): improve cache and reduce Memory Usages (#3756)
  • 612a15a chore(deps): update warehouse from ^3.0.0 to ^3.0.1
  • d2662d4 Merge pull request #3686 from curbengh/url-encoding
  • 6f7fe0c test(asset_img): attribute shouldn't be similar to value, unless it's boolean

There are 185 commits in total.

See the full diff


FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree:

codecov[bot] commented 4 years ago

Codecov Report

Merging #86 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #86   +/-   ##
=======================================
  Coverage   94.73%   94.73%           
=======================================
  Files           5        5           
  Lines         190      190           
=======================================
  Hits          180      180           
  Misses         10       10

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 680033b...cb9366b. Read the comment docs.