Releases: gpgkd906/date_component
v0.4.4
What's Changed
- Upgrade dependencies
- refactor tests, splite tests into sperated files
- enhanced timezone calcuate logic .
New Contributors
- @google-labs-jules[bot] made their first contribution in #11
Full Changelog: 0.4.3...v0.4.4
0.4.3
Optimizing DateComponent Library Performance
We've significantly optimized the calculate function in the DateComponent library, resulting in remarkable performance gains:
・Simple date calculations: 66.5% faster
・Cross-month calculations: 50% faster
・Cross-year calculations: 73% faster
・Daylight Saving Time (DST) calculations: 76% faster
Technical Changes
・Simplified complex conditional logic and nested structures
・Implemented a more direct and efficient date handling algorithm
・Reduced multiple calls to get_nearest_day_before function
・Optimized DST handling by directly using duration-based calculations for hours, minutes, and seconds
Code Quality
・Improved code readability and maintainability
・Standardized time calculation borrowing logic
・Enhanced comments to better explain the implementation
・Maintained full backward compatibility with existing interfaces
Full Changelog: 0.4.2...0.4.3