Skip to content

deps: bump github.com/dromara/carbon/v2 from 2.6.3 to 2.6.7 - #76

Merged
qrdl merged 2 commits into
mainfrom
dependabot/go_modules/github.com/dromara/carbon/v2-2.6.7
Aug 21, 2025
Merged

qrdl merged 2 commits into
mainfrom
dependabot/go_modules/github.com/dromara/carbon/v2-2.6.7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 26, 2025 •

Copy link
Copy Markdown
Contributor

Bumps github.com/dromara/carbon/v2 from 2.6.3 to 2.6.7.

Release notes

Sourced from github.com/dromara/carbon/v2's releases.

v2.6.7

Full Changelog: dromara/carbon@v2.6.6...v2.6.7

v2.6.6

English
  • Fix bug locale file cannot be found on Windows os
  • Fix bug lose of values of layout, weekStartsAt, weekendDays and lang when create new Carbon instance #303
  • Fix bug StartOfWeek and EndOfWeek methods change original Carbon instance Unexpectedly #304
  • Add curd integration testing for xorm, currently covering MySQL/Postgres/SQLite
  • Add unit testing for the Windows os in ci action
中文
  • 修复在 window 平台无法找到语言文件的 bug
  • 修复在创建新的 Carbon 实例时丢失layout、weekStartsAt、weekendDays 和 `lang 值的错误 #303
  • 修复 StartOfWeek 和 EndOfWeek方法意外更改原始 Carbon实例的错误 #304
  • 新增对 xorm 的 curd 集成测试,目前已覆盖 MySQL/Postgres/SQLite
  • 在 ci 中新增 window 系统的单元测试

v2.6.5

English
  • Upgrade go version from 1.18 to 1.21
  • SetLanguage method of Carbon struct add check for invalid Language struct
  • Parse method of Carbon struct add support for Postgres/SQLite time format string
  • Parse/ParseByLayout/ParseByFormat methods of Carbon struct change the return value from nil to empty carbon when parsing an empty string
  • Carbon struct add IsEmpty method to determine if it is an empty carbon
  • Carbon struct add ClearTestNow method to replace CleanTestNow, CleanTestNow will be removed in the future
  • Carbon struct add ParseByLayouts method to replace ParseWithLayouts, ParseWithLayouts will be removed in the future
  • Carbon struct add ParseByFormats method to replace ParseWithFormats, ParseWithFormats will be removed in the future
  • Carbon struct remove GormDataType method and change Value/MarshalJSON methods from pointer receiver to value receiver
  • LayoutType[T] struct remove GormDataType method and change Value/MarshalJSON methods from pointer receiver to value receiver
  • FormatType[T] struct remove GormDataType method and change Value/MarshalJSON methods from pointer receiver to value receiver
  • TimestampType[T] struct remove GormDataType method and change Value/MarshalJSON methods from pointer receiver to value receiver
  • SetResources method of Language struct add check invalid resources
  • Add curd integration testing for gorm, currently covering MySQL/Postgres/SQLite
  • Replace github.com/stretchr/testify/assert with github.com/stretchr/testify/suite for unit testing
中文
  • 将 Go 最低版本要求从 1.18 提升到 1.21
  • Carbon 结构体的 SetLanguage 方法增加对非法 Language 结构体的判断
  • Carbon 结构体的Parse 方法增加对 Postgres/SQLite 时间格式字符串的解析支持
  • Carbon 结构体的Parse/ParseByLayout/ParseByFormat方法解析 空字符串 时返回值从 nil 更改成空 carbon
  • Carbon 结构体新增 IsEmpty 方法用于判断是否为空 carbon
  • Carbon 结构体新增 ClearTestNow 方法替代 CleanTestNow, CleanTestNow 方法未来将移除
  • Carbon 结构体新增 ParseByLayouts 方法替代 ParseWithLayouts, ParseWithLayouts 方法未来将移除
  • Carbon 结构体新增 ParseByFormats 方法替代 ParseWithLayouts, ParseWithFormats 方法未来将移除
  • Carbon 结构体移除 GormDataType 方法, 并将 Value/MarshalJSON 方法从指针接收者改成值接收者
  • LayoutType[T] 结构体移除 GormDataType 方法, 并将 Value/MarshalJSON 方法从指针接收者改成值接收者
  • FormatType[T] 结构体移除 GormDataType 方法, 并将 Value/MarshalJSON 方法从指针接收者改成值接收者
  • TimestampType[T] 结构体移除 GormDataType 方法, 并将 Value/MarshalJSON 方法从指针接收者改成值接收者
  • Language 结构体的 SetResources 方法增加对非法资源的判断

... (truncated)

Commits
  • c79c2b6 docs: Update comments about parsing
  • d340e2b docs: Update comments about parsing
  • 14b3b75 refactor: Rename type_interface.go to interfaces.go
  • ab1f148 feat: Add support multiple parameters for Closest and Farthest methods
  • 0e8f45a refactor: Rename type_interface.go to interfaces.go
  • 2650bdc refactor: Update comments
  • e7ec439 docs: Update comments about extremum
  • 3b1e752 feat: Add support multiple parameters for Closest and Farthest methods
  • 8e4d65f docs: Update comments about parsing
  • b72f6d9 docs: Update comments about parsing
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [github.com/dromara/carbon/v2](https://github.com/dromara/carbon) from 2.6.3 to 2.6.7.
- [Release notes](https://github.com/dromara/carbon/releases)
- [Commits](dromara/carbon@v2.6.3...v2.6.7)

---
updated-dependencies:
- dependency-name: github.com/dromara/carbon/v2
  dependency-version: 2.6.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels May 26, 2025
@qrdl
qrdl self-requested a review August 21, 2025 14:25
@qrdl
qrdl merged commit 399e544 into main Aug 21, 2025
4 checks passed
@qrdl
qrdl deleted the dependabot/go_modules/github.com/dromara/carbon/v2-2.6.7 branch August 21, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant