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

Allow messages v19.1.4 to v20.0.1 to be used #83

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

mpkorstanje
Copy link
Contributor

@mpkorstanje mpkorstanje commented Dec 27, 2022

🤔 What's changed?

Allow messages v19.1.4 to v20.0.1 to be used by Javascript, PHP and Ruby.

With v19 [the messages protocol was expanded with keyword types][1]. Since then no relevant changes for Gherkin have been made. This means we can expand the range of allowed message versions somewhat.

1: https://github.com/cucumber/messages/blob/main/CHANGELOG.md#1900---2022-05-31

The documentation for the syntax of each can be found here:

Fixes: #82

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

♻️ Anything particular you want feedback on?

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

@mpkorstanje mpkorstanje changed the title Fix messages dependency versions Allow messages v19.1.4 to v20.0.1 to be used by Javascript, PHP and Ruby Dec 27, 2022
@mpkorstanje mpkorstanje changed the title Allow messages v19.1.4 to v20.0.1 to be used by Javascript, PHP and Ruby Allow messages v19.1.4 to v20.0.1 to be used Dec 27, 2022
Allow messages v19.1.4 to v20.0.1 to be used by Javascript, PHP and Ruby.

With v19 [the messages protocol was expanded with keyword types][1]. Since
then no relevant changes for Gherkin have been made. This means we can expand
the range of allowed message versions somewhat.

1: https://github.com/cucumber/messages/blob/main/CHANGELOG.md#1900---2022-05-31
@mpkorstanje
Copy link
Contributor Author

@mattwynne see also cucumber/html-formatter#206

Though there we are using peerDependencies for Javascript. Shouldn't we do the same here?

@mpkorstanje
Copy link
Contributor Author

@davidjgoss what about the peer depencies?

@davidjgoss
Copy link
Contributor

Oh sorry!

For the html formatter it made sense for messages to be a peer dep because it’s used in the context of a cucumber implementation.

Whereas usages of Gherkin can be more varied eg pretty printers, linters so making it a peer dep would add some overhead to those use cases.

Maybe run with status quo for now and we can review this more broadly across the libraries?

@mpkorstanje mpkorstanje merged commit 6603b82 into main Dec 30, 2022
@mpkorstanje mpkorstanje deleted the use-messages-19-at-minimum branch December 30, 2022 15:43
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.

The minimum messages version should still be 19.1.4
2 participants