Skip to content

v2.7.1

Latest

Choose a tag to compare

@gouguoyin gouguoyin released this 06 Nov 07:27
· 4 commits to master since this release
2c7ac38

English

✨ Features

  • Add Bengali (bn) language support: adds localized month and weekday names, relative time expressions, seasons, and constellations (by @Goldloli in #390).

🐛 Fixes

  • Fix a panic when converting dates outside the supported lunar calendar range: dates outside 1900-01-31 through 2101-01-28 now produce an invalid Lunar value with an error instead of causing an index-out-of-range panic (by @ybai08 in #389).
  • Fix the start date of Sagittarius: IsSagittarius now starts on November 23, so November 22 is no longer classified as both Scorpio and Sagittarius (by @ChandraChaan in #391).
  • Fix the Persian name for Sunday: corrects the value returned by ToWeekString(FaLocale) (by @ChandraChaan in #392).
  • Fix AddDuration and SubDuration modifying the receiver on a parse error: the returned value carries the error while the original instance remains unchanged (by @simpleqt in #393).

🔧 Dependencies

中文

✨ 新功能

  • 新增孟加拉语(bn)支持:增加月份、星期、相对时间、季节和星座等本地化文本(by @Goldloli in #390)。

🐛 修复

  • 修复超出农历支持范围时发生 panic 的问题:公历日期超出 1900-01-31 至 2101-01-28 时,返回携带错误的无效 Lunar 值,避免数组越界(by @ybai08 in #389)。
  • 修复射手座起始日期错误的问题:IsSagittarius 从 11 月 23 日开始判定,避免将 11 月 22 日同时判定为天蝎座和射手座(by @ChandraChaan in #391)。
  • 修复波斯语星期日名称拼写错误的问题:更正 ToWeekString(FaLocale) 返回的星期日名称(by @ChandraChaan in #392)。
  • 修复 AddDuration 和 SubDuration 解析失败时修改原实例的问题:错误保留在返回值中,原实例保持不变(by @simpleqt in #393)。

🔧 依赖升级

  • 将 actions/checkout 从 v4 升级到 v7(by @dependabot[bot] in #385)。
  • 将 github/codeql-action 从 v4.38.3 升级到 v4.39.1(by @dependabot[bot] in #386 和 #388)。
  • 将 actions/setup-go 从 v5 升级到 v7(by @dependabot[bot] in #387)。
  • 将测试依赖 github.com/stretchr/testify 升级到 v1.12.1。