Skip to content

Add libdates, improve godoc formatting, and bump phonenumbers#68

Merged
sam-at-luther merged 3 commits into
mainfrom
add-libdates
Feb 13, 2026
Merged

Add libdates, improve godoc formatting, and bump phonenumbers#68
sam-at-luther merged 3 commits into
mainfrom
add-libdates

Conversation

@sam-at-luther

Copy link
Copy Markdown
Member

Summary

  • Add libdates package: Civil date difference calculator with O(1) YMD algorithm, supporting canonical (years, months, days) differences between civil dates with configurable month-rollover semantics and comprehensive test coverage
  • Improve godoc formatting: Sections and proper lists for better documentation rendering
  • Bump phonenumbers: Security update from v1.1.7 to v1.2.2
  • Use generic fs: Expose MountEmbeddedFS with generic fs interface (PR Use generic fs #63)

Test plan

  • libdates includes comprehensive test suite with edge cases
  • All tests pass locally
  • Code lints cleanly

🤖 Generated with Claude Code

- Implements canonical (years, months, days) difference between civil dates
- Uses DoS-safe O(1) algorithm with configurable month-rollover semantics
- Provides DiffYMD() and DiffYMDOpts() for flexible date calculations
- Includes comprehensive test coverage with testify
- All tests pass and code lints cleanly
- Supports custom AddMonthsFn injection for runtime compatibility
- Guards against overflow, invalid ranges, and mega-span attacks
Security update to address vulnerabilities in the phonenumbers package.
@sam-at-luther sam-at-luther merged commit 14f26b2 into main Feb 13, 2026
2 checks passed
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.

1 participant