Skip to content

Releases: mattjennings/remark-reading-time

v2.1.0

Choose a tag to compare

@mattjennings mattjennings released this 09 Mar 01:40

What's Changed

New Contributors

Full Changelog: 2.0.2...v2.1.0

v2.0.2

Choose a tag to compare

@mattjennings mattjennings released this 08 May 21:43
  • Upgrade estree-util-value-to-estree dependency to fix security warnings by @dimaMachina in #4

2.0.1

Choose a tag to compare

@mattjennings mattjennings released this 16 Nov 01:52

Thanks to @yordis for doing all the work on this one.

Features

  • MDX support

Breaking Changes

  • readingTime is no longer stored under data.fm.readingTime of output, instead just data.readingTime
    • If you were using this with mdsvex, this will break compatibility with it. However, they are removing support for unified plugins (remark / rehype), so it soon won't matter anyway. You can stay on v1 of remark-reading-time for the time being.
  • Follows standard remark config syntax for passing in parameters:
// old
remark().use(remarkReadingTime({ attribute: 'something' }))

// new
remark().use(remarkReadingTime, { attribute: 'something' })