Skip to content

Bump github.com/golang-module/carbon/v2 from 2.5.9 to 2.6.6#118

Merged
github-actions[bot] merged 1 commit intomainfrom
dependabot/go_modules/github.com/golang-module/carbon/v2-2.6.6
May 19, 2025
Merged

Bump github.com/golang-module/carbon/v2 from 2.5.9 to 2.6.6#118
github-actions[bot] merged 1 commit intomainfrom
dependabot/go_modules/github.com/golang-module/carbon/v2-2.6.6

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 19, 2025

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps github.com/golang-module/carbon/v2 from 2.5.9 to 2.6.6.

Release notes

Sourced from github.com/golang-module/carbon/v2's releases.

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 ci
中文
  • 修复在 window 平台无法找到语言文件的 bug
  • 修复在创建新的 Carbon 实例时丢失layoutweekStartsAtweekendDays 和 `lang 值的错误 #303
  • 修复 StartOfWeekEndOfWeek方法意外更改原始 Carbon实例的错误 #304
  • 新增对 xormcurd 集成测试,目前已覆盖 MySQL/Postgres/SQLite
  • 新增 window 系统的单元测试 ci

v2.6.5

English
  • Upgrade go version from 1.18 to 1.23
  • SetLanguage method of Carbon struct add check for invalid Language struct
  • Parse method of Carbon struct add support for MySQL/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 方法增加对 MySQL/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 方法增加对非法资源的判断
  • 新增对 gormcurd 集成测试,目前已覆盖 MySQL/Postgres/SQLite
  • 使用 github.com/stretchr/testify/assert 替换 github.com/stretchr/testify/suite 进行单元测试

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)

Bumps [github.com/golang-module/carbon/v2](https://github.com/golang-module/carbon) from 2.5.9 to 2.6.6.
- [Release notes](https://github.com/golang-module/carbon/releases)
- [Commits](golang-module/carbon@v2.5.9...v2.6.6)

---
updated-dependencies:
- dependency-name: github.com/golang-module/carbon/v2
  dependency-version: 2.6.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies dependencies go Pull requests that update Go code labels May 19, 2025
@github-actions github-actions bot merged commit b6b6c06 into main May 19, 2025
4 of 8 checks passed
@github-actions github-actions bot deleted the dependabot/go_modules/github.com/golang-module/carbon/v2-2.6.6 branch May 19, 2025 20:42
@what-the-diff
Copy link

what-the-diff bot commented May 19, 2025

PR Summary

  • Updated Dependencies in go.mod
    We updated the versions of two dependencies (github.com/dromara/carbon/v2 and github.com/golang-module/carbon/v2) in the go.mod file. Both of these have been updated from version v2.5.9 to v2.6.6. This is part of regular software maintenance for improving application stability and taking advantage of new features or bug fixes that the latest versions of these dependencies might offer.

  • Checksum Updates
    Alongside the dependency updates, we had to update checksums in the go.sum file. A checksum is a kind of digital signature for a piece of data and helps confirm the data has not been altered, ensuring the integrity of the dependency modules. This is crucial for security and verification purposes.

@snyk-io
Copy link

snyk-io bot commented May 19, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies dependencies go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants