Skip to content

ref(dates): adjust date interface#487

Merged
dreyfus92 merged 11 commits intomainfrom
feat/dates
Mar 17, 2026
Merged

ref(dates): adjust date interface#487
dreyfus92 merged 11 commits intomainfrom
feat/dates

Conversation

@natemoo-re
Copy link
Member

@natemoo-re natemoo-re commented Mar 16, 2026

Refactors #448 to simplify public interface and clean up the split between core and prompts

Overview of changes:

  • format now uses Y M D to avoid ambiguity with Unicode LDML date formats
  • keyboard behavior more closely matches <input type="date">
    • digits fill right to left
    • navigation is per-segment
    • new digits wipe old digits
    • prompt accepts locale, defaults to locale-aware format

@changeset-bot
Copy link

changeset-bot bot commented Mar 16, 2026

⚠️ No Changeset found

Latest commit: 5357d2b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 2 packages
Name Type
@clack/prompts Minor
@clack/core Minor

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@natemoo-re natemoo-re marked this pull request as ready for review March 16, 2026 01:34
@natemoo-re natemoo-re requested review from 43081j and dreyfus92 March 16, 2026 01:34
Copy link
Member

@dreyfus92 dreyfus92 left a comment

Choose a reason for hiding this comment

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

awesome job nate 😄, left just a couple of comments 👀 also don't forget about adding a changeset

@natemoo-re
Copy link
Member Author

Updated! I don't have a specific changeset here since #448 already added one for the new date prompt. We haven't released that so there's no user-facing change in this PR.

@natemoo-re natemoo-re requested review from 43081j and dreyfus92 March 16, 2026 21:33
@dreyfus92 dreyfus92 merged commit fe32e13 into main Mar 17, 2026
5 checks passed
@dreyfus92 dreyfus92 deleted the feat/dates branch March 17, 2026 19:56
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.

3 participants