Skip to content

Document the removal of the vestigial Endpoint Options format member#2781

Merged
ericproulx merged 1 commit into
masterfrom
docs/format-removal-note
Jul 5, 2026
Merged

Document the removal of the vestigial Endpoint Options format member#2781
ericproulx merged 1 commit into
masterfrom
docs/format-removal-note

Conversation

@ericproulx

Copy link
Copy Markdown
Contributor

Follow-up to #2779. That PR promoted route metadata to Grape::Router::Route keyword arguments and, in the same change, dropped the always-nil :format member from the endpoint's internal Options. The metadata promotion was documented, but the format removal was only recorded in the commit/PR body — not in the CHANGELOG or UPGRADING.

This adds that documentation:

  • CHANGELOG — extends the Promote route metadata to Route keyword arguments #2779 line to mention dropping the unused Grape::Endpoint::Options format member.
  • UPGRADING — a short note: Grape::Endpoint.new(..., format: …) now raises unknown keyword: :format instead of silently ignoring it (nothing ever passed it; config.format was always nil, and the route's (.:format)/(.json) suffix comes from Grape::Path). Grape::Router::Pattern#initialize keeps format: as a now-optional keyword.

Docs only — no code changes.

🤖 Generated with Claude Code

The route-metadata promotion (#2779) also dropped the always-nil `:format`
member from the endpoint's internal `Options`, but that part was only noted
in the commit/PR body. Record it in the CHANGELOG line and add an UPGRADING
note: `Grape::Endpoint.new(format:)` now raises instead of being ignored,
and `Grape::Router::Pattern#initialize` keeps `format:` as an optional
keyword.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@ericproulx ericproulx merged commit 9ece4d9 into master Jul 5, 2026
102 of 103 checks passed
@ericproulx ericproulx deleted the docs/format-removal-note branch July 5, 2026 16:22
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