Skip to content

Document the date contact property type of MillionSend v0.22.0 - #12

Merged
heliocosta-dev merged 1 commit into
mainfrom
feat/date-property-type
Oct 21, 2026
Merged

heliocosta-dev merged 1 commit into
mainfrom
feat/date-property-type

Conversation

@heliocosta-dev

Copy link
Copy Markdown
Member

MillionSend v0.22.0 adds a third contact property type, "date", a MillionSend extension next to Resend's "string" and "number", and four date ops for segment filters. The SDK already passes both through untouched (ContactProperties.create posts the hash as given, Segments.create the filter), so this is docs only.

  • ContactProperties.create's comment names "date" and what reads as one.
  • README, Contact properties: type is "string", "number" or "date", with a date property example. A date property's values and its fallback_value must read as an ISO 8601 date (midnight UTC), a date-time with T or a space (up to 9 fraction digits, optional Z/±HH/±HHMM/±HH:MM zone, UTC when none), or Unix seconds or milliseconds from 2000 to 2100, else ValidationError (422). A Ruby Time goes as time.to_i or time.iso8601, since a bare Time serializes as "2026-01-08 10:30:00 -0300", which doesn't read as a date. Contacts.get returns a date as the stored text, { type: "date", value: "2026-01-08" }.
  • README, Segments: a not_in_last_days example, and before/after (an ISO date or date-time) and in_last_days/not_in_last_days (whole days as a string, "1" to "36500") on created_at and property:<key>.
  • The server versions table gains a v0.22.0 row.

Comment and README only: no version bump, nothing to tag.

🤖 Generated with Claude Code

- ContactProperties.create's comment and the README name "date" next to
  "string" and "number", say what reads as a date (also for
  fallback_value), how to send a Ruby Time, and that Contacts.get returns
  a date as the stored text.
- The Segments section shows a not_in_last_days filter and describes the
  before, after, in_last_days and not_in_last_days ops on created_at and
  property:<key>.
- The server versions table gains a v0.22.0 row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@heliocosta-dev
heliocosta-dev merged commit 2545244 into main Oct 21, 2026
5 checks passed
@heliocosta-dev
heliocosta-dev deleted the feat/date-property-type branch October 21, 2026 21:15
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