Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved LocalDate/LocalTime to HotChocolate.Types and added LocalDateTime #7749

Merged
merged 5 commits into from
Jan 29, 2025

Conversation

glen-84
Copy link
Collaborator

@glen-84 glen-84 commented Nov 21, 2024

Summary of the changes (Less than 80 chars)

  • Moved LocalDate/LocalTime to HotChocolate.Types and added LocalDateTime.

Closes #6420


LocalDate and LocalTime scalars moved

LocalDate and LocalTime have been moved from HotChocolate.Types.Scalars to HotChocolate.Types, and are therefore available without installing the additional package.

DateOnly and TimeOnly binding change

  • DateOnly is now bound to LocalDateType instead of DateType.
  • TimeOnly is now bound to LocalTimeType instead of TimeSpanType.

@glen-84 glen-84 added the 💥 breaking-changes This PR contains breaking changes. label Nov 21, 2024
@glen-84 glen-84 added this to the HC-15.0.0 milestone Nov 21, 2024
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.33%. Comparing base (d97d21a) to head (aecdf37).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7749   +/-   ##
=======================================
  Coverage   74.33%   74.33%           
=======================================
  Files        2894     2896    +2     
  Lines      152148   152193   +45     
  Branches    17761    17767    +6     
=======================================
+ Hits       113098   113137   +39     
- Misses      33165    33169    +4     
- Partials     5885     5887    +2     
Flag Coverage Δ
unittests 74.33% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@michaelstaib michaelstaib added the 📢 announce Consider announcing on Slack. label Nov 21, 2024
@michaelstaib michaelstaib modified the milestones: HC-16.0.0, HC-15.0.0 Jan 29, 2025
@michaelstaib michaelstaib merged commit 4adca9e into main Jan 29, 2025
103 checks passed
@michaelstaib michaelstaib deleted the gai/issue-6420 branch January 29, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📢 announce Consider announcing on Slack. 💥 breaking-changes This PR contains breaking changes. 🌶️ hot chocolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TimeOnly is expecting a TimeSpan Type
2 participants