Skip to content

Releases: hexojs/hexo-front-matter

v5.0.0

04 Nov 14:48
352a729

Choose a tag to compare

Breaking Changes

Fix timezone issue by @stevenjoezhang in #146

Starting from v5.0.0, the timezone handling has been changed (#146 ). Below is a comparison of the behavior between v4.x and v5.x:

Front-matter Timestamp defaultTimeZone Option (typically from Hexo config) v4.x Behavior v5.x Behavior
With timezone
(e.g., 2025-01-01T12:00:00+08:00)
Not specified Uses machine's local timezone Uses the specified timezone
With timezone
(e.g., 2025-01-01T12:00:00+08:00)
Specified Uses machine's local timezone Uses the specified timezone
Without timezone
(e.g., 2025-01-01T12:00:00)
Not specified Uses machine's local timezone Treats as UTC
Without timezone
(e.g., 2025-01-01T12:00:00)
Specified Uses machine's local timezone Uses defaultTimeZone
Date only
(e.g., 2025-01-01)
Not specified Treats as 00:00:00 in machine's local timezone Treats as 00:00:00 UTC
Date only
(e.g., 2025-01-01)
Specified Treats as 00:00:00 in machine's local timezone Treats as 00:00:00 in defaultTimeZone

Fixes

Dependencies

  • chore(deps-dev): remove @ts/eslint-plugin, parser by @uiolee in #131
  • chore(deps-dev): bump c8 from 8.0.1 to 9.1.0 by @dependabot[bot] in #133
  • chore(deps-dev): bump c8 from 9.1.0 to 10.1.2 by @dependabot[bot] in #139
  • chore(deps-dev): bump @types/chai from 4.3.20 to 5.0.1 by @dependabot[bot] in #144
  • chore(deps-dev): bump mocha from 10.8.2 to 11.7.1 by @dependabot[bot] in #153
  • chore(deps-dev): bump chai from 5.3.3 to 6.2.0 by @dependabot[bot] in #159

Test

New Contributors

Full Changelog: v4.2.1...v5.0.0

v4.2.1

31 Oct 12:07
98e2ce1

Choose a tag to compare

At the time of the publishing v4.2.0, we forgot to build TypeScript. This release is fixes that issue. At the source code level (before building TypeScript), it is the same as v4.2.0.

See: #129 (comment)

v4.2.0

31 Oct 08:50
21f72f1

Choose a tag to compare

Warning

Please use v4.2.1 instead
See: #129 (comment)

Fixes

  • fix: date localestring format error by @Pcrab in #68
  • fix: make parse options optional by @Pcrab in #67

Test

Dependencies

  • chore(deps-dev): bump c8 from 7.14.0 to 8.0.0 by @dependabot in #89
  • chore(dependabot): ignore @types/node update and reduce PR from dependabot by @yoshinorin in #108
  • chore(deps-dev): bump typescript from 4.9.5 to 5.2.2 by @dependabot in #115

New Contributors

Full Changelog

v4.1.0...v4.2.0

v4.1.0

20 Apr 13:48
511ba4f

Choose a tag to compare

Notable Changes

New Contributors

Full Changelog: v4.0.0...v4.1.0

v4.0.0

25 Oct 14:06
1adb3c6

Choose a tag to compare

Breaking Changes

Test

Dependencies

Full Changelog: 3.0.0...v4.0.0

3.0.0

03 Jan 01:21
4713192

Choose a tag to compare

Breaking Changes

Performance

  • refactor/perf: regexp & split shorthand @SukkaW #34

Dependencies

Misc

Full Changelog: 2.0.0...3.0.0

2.0.0

25 Jul 06:34
ccbdff3

Choose a tag to compare

Breaking change

  • chore: drop node 8 [#32]
  • - const yfm = require('hexo-front-matter');
    + const { parse: yfm } = require('hexo-front-matter');

Refactor

  • refactor: forEach() [#21]
  • refactor/perf: regexp & split shorthand [#34]

Housekeeping

  • chore(deps-dev): bump mocha from 7.2.0 to 8.0.1 [#33]
  • chore(deps-dev): bump mocha from 6.2.2 to 7.1.1 [#30]
  • chore(deps-dev): bump eslint from 6.8.0 to 7.1.0 [#32]
  • chore(deps-dev): bump eslint-config-hexo from 3.0.0 to 4.0.0 [#24]

1.0.0

07 Sep 07:31
2c441bc

Choose a tag to compare

Breaking change

  • chore: drop node 6 (#18)

Refactor

  • Migrate to ES6 (#9)

Housekeeping

  • Use eslint instead of jscs (#10)