Skip to content

Bump github.com/golang-module/carbon/v2 from 2.4.1 to 2.5.9#114

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

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

Conversation

@dependabot
Copy link
Contributor

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

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

Release notes

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

v2.5.9

English
  • Fix panic when database field type was nil

  • Split database_types.go into type_carbon.go, type_layout.go, type_format.go, type_timestamp.go

  • Rename LayoutFactory interface to LayoutTyper and SetLayout method to Layout

  • Rename FormatFactory interface to FormatTyper and SeFormat method to Format

  • Rename TimestampFactory interface to TimestampTyper and SePrecision method to Precision

  • Add b.ResetTimer() in benchmark test files

  • Add Copy method for Language struct

  • Add carbon.Timestamp type alias and carbon.NewTimestamp method

  • Add carbon.TimestampMilli type alias and carbon.NewTimestampMilli method

  • Add carbon.TimestampMicro type alias and carbon.NewTimestampMicro method

  • Add carbon.TimestampNano type alias and carbon.NewTimestampNano method

  • Add carbon.DateTime type alias and carbon.NewDateTime method

  • Add carbon.DateTimeMicro type alias and carbon.NewDateTimeMicro method

  • Add carbon.DateTimeMilli type alias and carbon.NewDateTimeMilli method

  • Add carbon.DateTimeNano type alias and carbon.NewDateTimeNano method

  • Add carbon.Date type alias and carbon.NewDate method

  • Add carbon.DateMilli type alias and carbon.NewDateMilli method

  • Add carbon.DateMicro type alias and carbon.NewDateMicro method

  • Add carbon.DateNano type alias and carbon.NewDateNano method

  • Add carbon.Time type alias and carbon.NewTime method

  • Add carbon.TimeMilli type alias and carbon.NewTimeMilli method

  • Add carbon.TimeMicro type alias and carbon.NewTimeMicro method

  • Add carbon.TimeNano type alias and carbon.NewTimeNano method

中文
  • 修复数据库字段类型为 nil 时抛出异常的bug

  • database_types.go 拆分成 type_carbon.go, type_layout.go, type_format.go, type_timestamp.go

  • LayoutFactory 接口重命名为 LayoutTyperSetLayout 方法重命名为 Layout

  • FormatFactory 接口重命名为 FormatTyperSetFormat 方法重命名为 Format

  • TimestampFactory 接口重命名为 TimestampTyperSetPrecision 方法重命名为 Precision

  • 性能测试文件增加 b.ResetTimer()

  • Language 结构体新增 Copy 方法

  • 新增 carbon.Timestamp 类型别名和 carbon.NewTimestamp 方法

  • 新增 carbon.TimestampMilli 类型别名和 carbon.NewTimestampMilli 方法

  • 新增 carbon.TimestampMicro 类型别名和 carbon.NewTimestampMicro 方法

  • 新增 carbon.TimestampNano 类型别名和 carbon.NewTimestampNano 方法

  • 新增 carbon.DateTime 类型别名和 carbon.NewDateTime 方法

  • 新增 carbon.DateTimeMicro 类型别名和 carbon.NewDateTimeMicro 方法

  • 新增 carbon.DateTimeMilli 类型别名和 carbon.NewDateTimeMilli 方法

  • 新增 carbon.DateTimeNano 类型别名和 carbon.NewDateTimeNano 方法

  • 新增 carbon.Date 类型别名和 carbon.NewDate 方法

  • 新增 carbon.DateMilli 类型别名和 carbon.NewDateMilli 方法

... (truncated)

Commits
  • 2810568 Updated to v2.5.9
  • 665ff86 Updated to v2.5.9
  • 9f2ab69 Updated to v2.5.5
  • 6ba33cd Updated to v2.6.5
  • f44d158 fix: Add a check for invalid dates before setting language objects
  • ecb0c8d test: Add blank lines in the test function
  • 5d11429 test:Simplify Carbon_day example testing
  • 7ef65a6 refactor: ReSetDefault -> ResetDefault
  • 822d6c8 fix: Optimize timestamp parsing error handling
  • b797f7f refactor: Add invalidTimestampError
  • Additional commits viewable in compare view

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.4.1 to 2.5.9.
- [Release notes](https://github.com/golang-module/carbon/releases)
- [Commits](golang-module/carbon@v2.4.1...v2.5.9)

---
updated-dependencies:
- dependency-name: github.com/golang-module/carbon/v2
  dependency-version: 2.5.9
  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 12, 2025
@github-actions github-actions bot merged commit 6f8145f into main May 12, 2025
6 of 8 checks passed
@github-actions github-actions bot deleted the dependabot/go_modules/github.com/golang-module/carbon/v2-2.5.9 branch May 12, 2025 20:59
@what-the-diff
Copy link

what-the-diff bot commented May 12, 2025

PR Summary

  • Go Version Update
    The Go language version used in the project has been upgraded from 1.21.0 to 1.23.0. This provides the project access to the most recent features and improvements of the Go language.

  • Dependency Changes in "go.mod" and "go.sum"

    • Addition: The project now includes a new indirect dependency known as github.com/dromara/carbon/v2 v2.5.9. Indirect dependencies are those that the project's code doesn't explicitly require but are needed by other dependencies.
    • Update: The version for github.com/golang-module/carbon/v2 has been updated from v2.4.1 to v2.5.9. This means our project will now benefit from any new features, updates, or bug fixes that the newer version of this dependency provides.
    • Reflecting Changes: To ensure the consistent tracking of these module dependencies, respective entries have been added and updated in the go.sum file. It's a ledger for Go dependencies, making dependencies more predictable and manageable.

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