Skip to content

feat!: add required calendarDate stage to MealInDbBaseClientFacingSource builder and update environment URLs#2

Closed
fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-05-04T11-29Z
Closed

feat!: add required calendarDate stage to MealInDbBaseClientFacingSource builder and update environment URLs#2
fern-api[bot] wants to merge 1 commit into
mainfrom
fern-bot/2026-05-04T11-29Z

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented May 4, 2026

⚠️ 0.0.1 → 1.0.0

Breaking: The TimestampStage.timestamp() method in MealInDbBaseClientFacingSource's staged builder now returns CalendarDateStage instead of NameStage, breaking all existing builder call chains that chain directly from timestamp() to name().

Breaking Changes

  • MealInDbBaseClientFacingSource builder — a new required calendarDate step has been inserted into the staged builder chain; TimestampStage.timestamp() now returns CalendarDateStage instead of NameStage, so existing builder call chains will fail to compile. Add a .calendarDate(...) call after .timestamp(...) to migrate.
  • Environment URLs — the base URLs for all four environment constants (PRODUCTION, PRODUCTION_EU, SANDBOX, SANDBOX_EU) have changed from tryvital.io domains to junction.com domains. No code change is required, but any hardcoded URL overrides should be updated accordingly.

Added

  • MealInDbBaseClientFacingSource.getCalendarDate() — returns the date of the meal in YYYY-MM-DD format, supporting providers that only expose a calendar date.

See full changelog

…rce builder and update environment URLs

Introduce a new required `calendarDate` field to `MealInDbBaseClientFacingSource`,
inserting a new `CalendarDateStage` step into the staged builder chain between
`TimestampStage` and `NameStage`. This is a breaking change because existing code
calling `.timestamp(...)` and expecting a `NameStage` in return will now receive a
`CalendarDateStage` instead, causing compilation failures.

Additionally, update all environment base URLs from `tryvital.io` to `junction.com`
domains across PRODUCTION, PRODUCTION_EU, SANDBOX, and SANDBOX_EU constants.

Key changes:
- Add required `calendarDate` (String) field and `getCalendarDate()` accessor to `MealInDbBaseClientFacingSource`
- Insert new `CalendarDateStage` interface into the staged builder chain; `TimestampStage.timestamp()` now returns `CalendarDateStage` instead of `NameStage`
- Update `Environment` base URLs from `tryvital.io` to `junction.com` for all four environment constants

🌿 Generated with Fern
@ItachiEU ItachiEU closed this May 6, 2026
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