Sorry about this - I did not realize any plugins were using constants from our routes.rb file. I’ve added them back with a note about them being deprecated.
https://github.com/discourse/discourse/commit/d0b44520bd36e271e0b935a6bd11fc9dc66a19d5
In a plugin you can support both with a piece of code like this:
defined?(RouteFormat) ? RouteFormat.username : USERNAME_ROUTE_FORMAT