Skip to content

Releases: hexojs/hexo-migrator-rss

1.1.0

02 Aug 06:40
da501b9
Compare
Choose a tag to compare

Breaking change

  • Drop support of Node 13 due to compatibility issue; this doesn't prevent npm from installing this plugin in Node 13, it shows warning instead. [#69]
    • Nodejs has officially dropped support of Node 13 since 1 Jun 2020.
  • fix(turndown): headingStyle: 'atx' & codeBlockStyle: 'fenced' [#65]
    • More in-line with markdown style preferred by Hexo.

Feature

  • feat: import excerpt with markup [#65]
    • Retain original markup of excerpt
    title: foo bar
    date: 2020-01-01 00:00:00
    ---
    
    Lorem ipsum [dolor](http://example.com/) sit amet, **nam** ex putant _intellegat_ reprehendunt.
    
    <!-- more -->
    
    Cu nulla aeterno nec, tibique deterruisset an eam, ea pro dolorem vituperata.
    

Fix

  • fix: unescape title if escaped [#71]
    • A post could be entitled Some&quot;Title&quot;, the fix is to detect the pattern and unescape it when necessary.
  • fix: stricter excerpt regex [#70]
    • Now only the following variants of excerpt tag are valid.
    1. <!--more-->
    2. <!-- more-->
    3. <!--more -->
    4. <!-- more -->
  • fix: handle title with double quotes [#64]
    • Escape double quote before passing to yml parser

1.0.0

24 Jun 08:40
53f2f71
Compare
Choose a tag to compare

v1 is a complete rewrite to utilize modern APIs. By no means it is feature-complete, please test it on your atom.xml/rss.xml and report any item that did not get imported.

Breaking change

Feature

  • --skipduplicate option to skip importing posts which have similar title as existing ones. [#44]
    • Disabled by default
    • Usage: hexo migrate rss /path/to/feed.xml --skipduplicate
  • --limit [number] option to set the maximum number of posts to import. [#37]
    • Default to importing all posts.
    • Usage: hexo migrate rss /path/to/feed.xml --limit 3

Refactor

  • Complete rewrite to utilize modern API/library. It enables more flexible parsing of input feed with the ability to support custom elements and future formats. [#34]

Dependencies

  • Upgrade camaro from 4.2.0 to 6.0.2 [#58]
  • Upgrade turndown from 5.0.3 to 6.0.0 [#47]
  • Upgrade got from 10.7.0 to 11.0.1 [#49]
  • Upgrade hexo-util from 1.9.0 to 2.1.0 [#53]
  • Upgrade hexo-fs from 2.0.0 to 3.0.1 [#50]

0.1.4

02 Jan 16:02
40e1323
Compare
Choose a tag to compare

Fixes

  • avoid crash when description is empty #12