any reason for this?
AI-generated summary
In a discussion titled ‘Webpush gem is not latest’ under the Dev category, darix questioned why Discourse was using an outdated version of the webpush gem, particularly since it’s tightly locked in the Gemfile and the feature it supports was recently added. featheredtoast explained that the older version was pinned during migration to ensure reliability, as newer versions had previously caused notification delivery issues. darix noted this complicates RPM packaging and highlighted the general risk of stale dependencies. Mittineague speculated that newer versions added JWT headers for notification authentication, though unsure of their relevance here. Ultimately, featheredtoast confirmed the gem is no longer pinned as of commit 5993a3ae, resolving the issue. darix expressed gratitude, noting this will simplify long-term maintenance.
it’s a dependency that was working in the plugin when we migrated. There appears to have been some issues in the past with those libs sometimes breaking and not sending notifications. I wanted no chance of that happening while I was porting, so I used dependencies I knew were working.
What does that particular patch give you that you’re missing?
I am packaging discourse as an rpm. And was wondering why we were using not the latest version for a feature that is just added. in general Gemfile dependencies tend to get stale especially when it is so tightly locked down as in this case.
As best as I can determine the more recent version of the gem added JWT (JSON Web Token) headers. This could be important to authenticate the notification as coming from Discourse. But I am not knowledgeable enough in this area to know how applicable that is here.
This is now no longer pinned per Don't pin version for the webpush gem. · discourse/discourse@5993a3a · GitHub
Thank you! This will make my life easier in the long run