Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

feat(preferences): add optional birthDate to PreferenceUpdateItem#288

Merged
jmenestr merged 3 commits intomainfrom
feat/preference-update-item-birthdate
Mar 12, 2026
Merged

feat(preferences): add optional birthDate to PreferenceUpdateItem#288
jmenestr merged 3 commits intomainfrom
feat/preference-update-item-birthdate

Conversation

@jmenestr
Copy link
Copy Markdown
Contributor

Add optional birthDate (ISO 8601 date YYYY-MM-DD) to PreferenceUpdateItem for native birthdate / age-gating flows. Prerequisite for main repo Phase 1.

Made-with: Cursor

Related Issues

  • [none]

Security Implications

[none]

System Availability

[none]

Add optional birthDate (ISO 8601 date YYYY-MM-DD) to PreferenceUpdateItem
for native birthdate / age-gating flows. Prerequisite for main repo Phase 1.

Made-with: Cursor
@jmenestr jmenestr requested review from a team and michaelfarrell76 March 11, 2026 21:46
Comment thread src/preferences.ts
}),
),
/** User birthdate. Optional. Accepted formats: YYYY-MM-DD, YYYY-MM, or MM-YYYY. Format enforcement is in the main repo. */
birthDate: t.string,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Noob question -- shouldn't this be in the metadata object?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@dipack95 we are moving it to the top level

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It was in the metadata object for the initial implementation but we are making it a bit more general beyond just costco.

@jmenestr jmenestr merged commit 6a41911 into main Mar 12, 2026
9 of 10 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants