Skip to content

Issue 21: fix exporting of utc unix methods#22

Merged
craig-o-curtis merged 3 commits into
mainfrom
21-fix-exporting-of-utc-unix-methods
May 10, 2026
Merged

Issue 21: fix exporting of utc unix methods#22
craig-o-curtis merged 3 commits into
mainfrom
21-fix-exporting-of-utc-unix-methods

Conversation

@craig-o-curtis
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
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.

Pull request overview

This PR addresses missing public exports by adding barrel (index.ts) files for the utc/compare and unix/compare submodules, and by re-exporting isLeapYear from the plain validation barrel so consumers can import it from the documented entrypoints.

Changes:

  • Add packages/gmt/src/utc/compare/index.ts to export UTC compare helpers.
  • Add packages/gmt/src/unix/compare/index.ts to export Unix compare helpers.
  • Re-export isLeapYear from packages/gmt/src/plain/validate/index.ts, making it available via @burglekitt/gmt/plain.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/gmt/src/utc/compare/index.ts Adds missing barrel exports for UTC compare utilities.
packages/gmt/src/unix/compare/index.ts Adds missing barrel exports for Unix compare utilities.
packages/gmt/src/plain/validate/index.ts Re-exports isLeapYear from the plain validate barrel.
.changeset/famous-spiders-doubt.md Adds a patch changeset describing the export fix (needs wording corrections).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .changeset/famous-spiders-doubt.md Outdated
Comment thread .changeset/famous-spiders-doubt.md Outdated
@craig-o-curtis craig-o-curtis merged commit 8d49857 into main May 10, 2026
16 checks passed
@craig-o-curtis craig-o-curtis deleted the 21-fix-exporting-of-utc-unix-methods branch May 10, 2026 11:34
@craig-o-curtis craig-o-curtis added bug Something isn't working gmt labels May 10, 2026
@craig-o-curtis craig-o-curtis linked an issue May 10, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working gmt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix exporting of utc, unix methods

3 participants