Skip to content

Release 9.1.1: slim down default context, drop ClientId service#287

Draft
bartes wants to merge 2 commits into
developfrom
9.1.1
Draft

Release 9.1.1: slim down default context, drop ClientId service#287
bartes wants to merge 2 commits into
developfrom
9.1.1

Conversation

@bartes
Copy link
Copy Markdown
Contributor

@bartes bartes commented Jun 1, 2026

The default request context built by Castle::Context::GetDefault now carries only headers, ip and library; the client_id, active, user_agent and locale fields are removed.

Changes

  • Default context is now { headers:, ip:, library: }.
  • Remove the internal Castle::ClientId::Extract service (class + spec) and its lib/castle.rb require.
  • Castle::Context::GetDefault#initialize now takes only request (the cookies argument and unused ivars are gone); Context::Prepare is updated accordingly. The cookies option on Castle::Client.from_request / Castle::Context::Prepare.call is retained but no longer used.
  • Update the affected specs.
  • Bump VERSION to 9.1.1, refresh Gemfile.lock, and add the CHANGELOG entry.

bartes added 2 commits June 1, 2026 13:46
Reduce the default request context to headers, ip and library, and remove
the now-unused Castle::ClientId::Extract service plus the cookies plumbing
in Castle::Context::GetDefault. The dropped context fields (client_id,
active, user_agent, locale) are already derivable from headers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant