Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency hexo to v4.2.1 #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 9, 2019

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
hexo (source) 4.0.0 -> 4.2.1 age adoption passing confidence

Release Notes

hexojs/hexo

v4.2.1

Compare Source

Fix

  • Fix compatibility with Node 14 [#​4285]

v4.2.0

Compare Source

Features
  • Caching is disabled by default in hexo-server [#​3963]
    • It's disabled so that any changes (particularly to the theme's layout) can be previewed in real-time.
    • If you use hexo-server in production environment to serve your website, it can be enabled by,
    _config.yml
    server:
      cache: true
  • Add min_depth: option to toc() helper [#​3997]
    • Example usage:
    <%- toc(page.content, { min_depth: 2 }) %>
    // table of content would only include <h2>, <h3> and above
Fixes
  • Merges similar theme configs in main config and theme's config [#​3967]

    • For example:
    _config.yml
    theme_config:
      a:
        b: 'foo'
    • Plus,
    _config.yml of theme
    a:
      c: 'bar'
    • theme variable should have,
    a: {
      b: 'foo',
      c: 'bar'
    }
    
  • Fixes some caching issue [#​3985]

  • Open Graph now applies all pretty_urls options to og:url tag [#​3983]

Refactor
  • No longer uses lodash [#​3969], [#​3987], [#​3753]

    • Lodash _ is still available as a global variable, usually utilized in theme layout.
    • However, we plan to completely drop it in the coming Hexo 5.0.0
    • This project page includes all the relevant pull requests which you may find useful
  • Completely drops cheerio [#​3850], [#​3677]

    • This means Hexo no longer includes cheerio as part of its production dependencies (it's still a development dependency)
    • This also means the following initialization methods no longer work,
    const cheerio = require('./node_modules/hexo/node_modules/cheerio/index')
    const cheerio = require('./node_modules/cheerio/index')
    • To use cheerio,
    $ npm install --save cheerio
    const cheerio = require('cheerio')

v4.1.1

Compare Source

Feature
  • Add trailing_html: to pretty_urls: option to remove ".html" from url [#​3917]
    • Use the following config to remove the trailing ".html" from permalink variables
    _config.yml
    pretty_urls:
      trailing_html: false
    • Example: https://yoursite.com/page/about.html -> https://yoursite.com/page/about
Fixes
  • Set default locales (in "language_TERRITORY" format) for og:locale Open Graph tag [#​3921]
    • Previously og:locale was inserted only if language: is configured in "language-TERRITORY" format
    • With this fix, if the language is "en", og:locale will default to "en_US". Refer to the pull request for the full list.
  • meta_generator() helper should output the correct Hexo version [#​3925]
  • permalink_defaults: option should be parsed, not replaced [#​3926]
  • "node_modules/" and ".git/" folders in themes/ are now always ignored [#​3918]
Refactor
  • Further reduces lodash usage [#​3880]

v4.1.0

Compare Source

Breaking change
  • Requires Node 8.10 or above [#​3778]
    • Node 8 is going to be deprecated in less than a month, we strongly urge to upgrade to Node 10 or newer
  • og:locale Open Graph tag won't be inserted if language: (in config, front-matter of post/page or open_graph() helper) is not in language-TERRITORY format [#​3808]
    • en is invalid
    • en-GB is valid
    • Not all locales are supported (e.g. en-AU is not valid), see official list
    • Dash (e.g. "en-GB") must be used for multilingual support, dash is automatically transformed to underscore (e.g. "en_GB") in og:locale
    • Verify the corresponding file exists in the languages/ folder of installed theme before changing the language: config
Features
  • Support adding hour and minute to post permalink [#​3629]
    • Example usage:
    _config.yml
    permalink: :year/:month/:day/:hour/:minute/:title/
    • Results in https://yoursite.com/2019/12/09/23/59/a-post/
  • Insert article:published_time [#​3674] article:author [#​3805] Open Graph tags
  • Enable lazyload in iframe-related tag plugins [#​3798]
  • meta_generator helper to insert metadata element tag [#​3782]
    • Example usage:
    • Insert the following snippet (if EJS is used) inside <head> element of your theme layout,
    <%- meta_generator() %>
    • would output <meta name="generator" content="Hexo 4.1.0">
    • Hexo 3.9.0+ inserts the tag automatically; to get the performance benefit (of the meta_generator helper), meta_generator: option should be disabled,
    _config.yml
    meta_generator: false
  • Support custom attributes in js() [#​3681] and css() [#​3690] helpers
    • Example usage:
    <%- js({ src: 'script.js', integrity: 'foo', async: true }) %>
    // <script src="/script.js" integrity="foo" async></script>
    
    <%- css({ href: 'style.css', integrity: 'foo' }) %>
    // <link rel="stylesheet" href="/style.css" integrity="foo">
  • Support wrap: option to enable/disable wrapping backtick codeblock in <table> element [#​3827]
    • Enabled by default, enabling line_number also enables it
    • Configure in highlight:
    _config.yml
    highlight:
      line_number: false # must be disabled to disable wrap:
      wrap: false
    {% codeblock lang:js wrap:false %}
    const foo = (bar) => {
      return bar;
    };
    {% endcodeblock %}
Fixes
  • Retain blank lines in a codeblock attached in blockquote [#​3770]
  • Replaced deprecated og_updated_time Open Graph tag with article:modified_time [#​3674]
  • Replaced deprecated keywords Open Graph tag with article:tag [#​3805]
  • meta_generator tag should be inserted into <head> that spans multiple lines [#​3778]
  • No longer clear database db.json when running hexo new or hexo --help [#​3793]
  • Completely ignore files/folders specified in ignore: option [#​3797]
    • If you're using Webpack or related tools in your theme, the node_modules folder could cause some issues
    • A temporary workaround is to configure Hexo to ignore that folder,
    _config.yml
    ignore: '**/themes/*/node_modules/**'
    • The workaround will no longer be necessary in future version
  • jsfiddle, vimeo and youtube tag plugins now use https only [#​3806]
  • external_link filter should not process data URLs (e.g. mailto: & javascript:) [#​3812] and <article> element [#​3895]
  • Prevent unnecessary insertion of front-matter when using alias in Hexo CLI [#​3830]
    • -p is alias of --path
    • -s is alias of --slug
    • -r is alias of --replace
  • Applies include: and exclude: options to post's asset folder [#​3882]
  • ignore: option should work for files, in addition to folders [#​3878]
Housekeeping

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot assigned SukkaW Dec 9, 2019
@renovate renovate bot requested a review from SukkaW December 9, 2019 14:17
@renovate renovate bot changed the title fix(deps): update dependency hexo to v4.1.0 fix(deps): update dependency hexo to v4.1.1 Dec 12, 2019
@renovate renovate bot changed the title fix(deps): update dependency hexo to v4.1.1 fix(deps): update dependency hexo to v4.2.0 Dec 31, 2019
@renovate renovate bot changed the title fix(deps): update dependency hexo to v4.2.0 fix(deps): update dependency hexo to v4.2.1 Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants