Skip to content

Release 4.0.0 - #71

Merged
czj merged 1 commit into
mainfrom
release/v4.0.0
Nov 22, 2026
Merged

czj merged 1 commit into
mainfrom
release/v4.0.0

Conversation

@czj

@czj czj commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Agentry answers under its own name: Agentry instead of Browser, browser's names kept as deprecated aliases until 5.0.

Breaking

  • require "agentry" (a bare gem "agentry") no longer defines Browser. To keep the old names a while longer, write gem "agentry", require: "browser", or keep require: "browser/browser". The migration guide lists every rename and gives a prompt for a coding agent.
  • Of the browser/* require paths, only browser, browser/browser, browser/aliases, browser/testing and browser/rails remain; others such as browser/middleware or browser/version raise LoadError.
  • Class names read Agentry::Chrome, Agentry::Bot…, even where code calls them through Browser, and the Railtie initializer is named "agentry".
  • Agentry 4 refuses to load its browser/* paths next to the browser gem, since both define Browser: a bundle can't hold both until 5.0.

New

  • Agentry.new, Agentry::Bot, Agentry::Middleware…, require "agentry", the agentry helper in controllers, views and middleware blocks, and config.agentry.
  • browser's names (Browser, the browser helper, browser in a middleware block, config.browser) still work and warn once each under RUBYOPT=-W:deprecated.
  • require "agentry/testing" and require "agentry/rails" work on their own.

Fixed

  • config.agentry.default_url_options reaches the url helpers of middleware blocks, which no longer raise when the app has no Action Mailer.

Once merged, the release workflow tags the merge commit v4.0.0 and publishes the gem, after the release environment's approval.

@czj
czj enabled auto-merge (squash) November 22, 2026 21:55
@czj
czj merged commit 55c1930 into main Nov 22, 2026
19 checks passed
@czj
czj deleted the release/v4.0.0 branch November 22, 2026 21:55
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