Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versions comparaison: rc is also a suffix (as pre). #650

Merged

Conversation

jibees
Copy link
Contributor

@jibees jibees commented Mar 27, 2023

Type of PR (feature, enhancement, bug fix, etc.)

Simply add rc as suffix as pre is a suffix used in version.

Description

Simply add rc as suffix as pre is a suffix used in version.

Fixes #649

Why should this be added

Since the rc has been released, we should compare versions between gem and npm taking into account the rc suffix (and not only pre)

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing

@netlify
Copy link

netlify bot commented Mar 27, 2023

Deploy Preview for stimulusreflex ready!

Name Link
🔨 Latest commit a5e9d4e
🔍 Latest deploy log https://app.netlify.com/sites/stimulusreflex/deploys/642199321d360b0008c95d09
😎 Deploy Preview https://deploy-preview-650--stimulusreflex.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jibees jibees force-pushed the Versioning-`rc`-is-also-as-a-suffix-used branch from 1a8a4d5 to a5e9d4e Compare March 27, 2023 13:25
Copy link
Member

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for reporting and fixing this @jibees! 🙏🏼

@marcoroth marcoroth merged commit 0065b00 into stimulusreflex:main Mar 27, 2023
marcoroth added a commit that referenced this pull request Mar 27, 2023
#651)

Following up on #641 and #650, this pull request also shows version
mismatch toasts when the CableReady versions don't match. Perviously it
would just show toast messages when the StimulusReflex versions didn't
match.

## Why should this be added

Previously this just showed a console error message when the user
enabled the client-side `debug` option to `true`. Now this message is
always printed, regular of the option. But additionally it now shows a
version mismatch toast message when the `debug` option is set to `true`:
![Screenshot 2023-03-27 at 21 10
36](https://user-images.githubusercontent.com/6411752/228042658-ed9523cc-575d-47b3-aaf0-6ab33a47b140.png)

This helps to know what's up and why a reflex action might not have
worked. If you didn't have the console open you wouldn't know why the
reflex action didn't work.
@marcoroth
Copy link
Member

marcoroth commented Mar 27, 2023

This fix has been released in v3.5.0.rc2

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.

Error on the version difference between npm and gem although they are identical
2 participants