Skip to content

v5.0.0

Latest

Choose a tag to compare

@yoshinorin yoshinorin released this 04 Nov 14:48
· 5 commits to master since this release
352a729

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