Releases: hexojs/hexo-front-matter
Releases · hexojs/hexo-front-matter
v5.0.0
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
- chore: Fix CRLF end of line regex by @dimaslanjaka in #77
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
- @uiolee made their first contribution in #131
- @dimaslanjaka made their first contribution in #77
Full Changelog: v4.2.1...v5.0.0
v4.2.1
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
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/nodeupdate 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
Notable Changes
- Migrate TypeScript
- refactor: migrate typescript by @stevenjoezhang in #59
- chore: update
package.jsonfor release typescript package by @yoshinorin in #60 - feat: more type annotations by @stevenjoezhang in #62
- remove directories in package.json by @stevenjoezhang in #63
New Contributors
- @stevenjoezhang made their first contribution in #59
Full Changelog: v4.0.0...v4.1.0
v4.0.0
Breaking Changes
- chore: require node14+ by @yoshinorin in #54
Test
- test(deps): delete
momentfrom the test by @yoshinorin in #56
Dependencies
- chore(deps-dev): bump eslint-config-hexo from 4.2.0 to 5.0.0 by @dependabot in #52
- chore(deps-dev): bump mocha from 9.2.2 to 10.0.0 by @dependabot in #53
- chore(deps): update dependencies by @yoshinorin in #55
- chore(deps): replace
nycwithc8by @yoshinorin in #57
Full Changelog: 3.0.0...v4.0.0
3.0.0
Breaking Changes
- chore: drop node.js 10.x support by @yoshinorin in #49
Performance
Dependencies
- chore(deps): bump js-yaml from 3.14.1 to 4.1.0 by @dependabot-preview in #37
- Bump eslint from 7.32.0 to 8.0.1 by @dependabot in #47
- chore(deps-dev): bump mocha from 8.4.0 to 9.1.3 by @dependabot in #48
Misc
- chore(ci): migrate to GitHub Actions from TravisCI by @yoshinorin in #50
- Upgrade to GitHub-native Dependabot by @dependabot-preview in #38
Full Changelog: 2.0.0...3.0.0
2.0.0
Breaking change
- chore: drop node 8 [#32]
-
- const yfm = require('hexo-front-matter'); + const { parse: yfm } = require('hexo-front-matter');