Skip to content

feat: update Carbon dependency to v2.6.x#1018

Merged
hwbrzzl merged 35 commits intogoravel:masterfrom
go-libraries:carbon2.6.4
May 11, 2025
Merged

feat: update Carbon dependency to v2.6.x#1018
hwbrzzl merged 35 commits intogoravel:masterfrom
go-libraries:carbon2.6.4

Conversation

@kuafuRace
Copy link
Contributor

@kuafuRace kuafuRace commented Apr 28, 2025

📑 Description

Update Carbon dependency from v2.5.4 to v2.6.4

Close goravel/goravel#645

✅ Checks

  • Added test cases for my code

Copilot AI review requested due to automatic review settings April 28, 2025 08:10
@kuafuRace kuafuRace requested a review from a team as a code owner April 28, 2025 08:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@kuafuRace kuafuRace changed the title feat: Update Carbon dependency to v2.6.x feat: update Carbon dependency to v2.6.x Apr 28, 2025
@codecov
Copy link

codecov bot commented Apr 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.35%. Comparing base (ecdd1e5) to head (1c0a5c2).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1018      +/-   ##
==========================================
+ Coverage   70.20%   70.35%   +0.14%     
==========================================
  Files         176      176              
  Lines       12432    12297     -135     
==========================================
- Hits         8728     8651      -77     
+ Misses       3322     3265      -57     
+ Partials      382      381       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hwbrzzl
Copy link
Contributor

hwbrzzl commented Apr 29, 2025

The CI is stuck; close and reopen it.

@hwbrzzl hwbrzzl closed this Apr 29, 2025
@hwbrzzl hwbrzzl reopened this Apr 29, 2025
@hwbrzzl
Copy link
Contributor

hwbrzzl commented May 3, 2025

FYI, Test External failed.

@hwbrzzl hwbrzzl changed the title feat: update Carbon dependency to v2.6.x feat: update Carbon dependency to v2.6.x May 10, 2025
hwbrzzl
hwbrzzl previously approved these changes May 10, 2025
Copy link
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing 👍

Comment on lines +31 to +32
// CleanTestNow cleans the test time.
func CleanTestNow() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// CleanTestNow cleans the test time.
func CleanTestNow() {
// ClearTestNow cleans the test time.
func ClearTestNow() {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Should Clean be fine?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image Should `Clean` be fine?
image

I think clear is better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the official documentation of PHP Carbon, clear may be better
image

Israel, Jamaica, Japan, Libya, Poland, Portugal, PRC, Singapore, Turkey, Shanghai, Chongqing, Harbin, Urumqi,
HongKong, Macao, Taipei, Tokyo, Saigon, Seoul, Bangkok, Dubai, NewYork, LosAngeles, Chicago, Moscow, London,
Berlin, Paris, Rome, Sydney, Melbourne, Darwin}
func TestCleanTestNow(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

devhaozi
devhaozi previously approved these changes May 10, 2025
Copy link
Member

@devhaozi devhaozi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…, `ParseWithFormats` method into `ParseByFormat` method using generics,
@kuafuRace
Copy link
Contributor Author

Review Ready

Comment on lines 26 to 27
// Deprecated: it will be removed in the future, use ClearTestNow instead.
// UnsetTestNow unsets the test time.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Deprecated: it will be removed in the future, use ClearTestNow instead.
// UnsetTestNow unsets the test time.
// UnsetTestNow unsets the test time.
// Deprecated: it will be removed in the future, use ClearTestNow instead.

Copy link
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hwbrzzl hwbrzzl merged commit ff2ce74 into goravel:master May 11, 2025
13 of 14 checks passed
@kuafuRace kuafuRace deleted the carbon2.6.4 branch May 11, 2025 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Carbon new version (2.6.0) is uncompatible with Goravel v1.15.5

4 participants