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

support fastify 3.x - node >=10 #2

Merged
merged 9 commits into from
Aug 9, 2020
Merged

Conversation

mashpie
Copy link
Contributor

@mashpie mashpie commented Aug 8, 2020

Thanks a lot for this module!

We've been using it successfully with fastify 2.x. Now as I was starting to check for upgrades and migration options I found fastify-hemera sticking to ^2.0.0. Turned out to be working without change in 3.2.x. This PR is basically just changing that version to >=2.0.0.

But as I wanted proper tests I added some notes to readme and upgraded fastify and related dependencies. This introduced a new version of server which dropped support for node 8:

error semver@7.3.2: The engine "node" is incompatible with this module. Expected version ">=10". Got "8.17.0"
206error Found incompatible module.

That's why this PR also changes node support and covers versions from 10 to 14 in travis.

package.json Outdated Show resolved Hide resolved
Copy link
Member

@StarpTech StarpTech left a comment

Choose a reason for hiding this comment

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

Great PR thanks!

README.md Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
"fastify-plugin": "^2.2.0",
"nats": "1.4.12",
"nats-hemera": "^7.0.2",
"tap": "^14.10.8"
Copy link
Member

Choose a reason for hiding this comment

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

This is a dev dep.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, reason for upgrade is that tests are using those too... at least fastify-plugin needs an upgrade to support fastify 3 - new tap comes with built in spec reporter

@StarpTech
Copy link
Member

@mashpie Would you mind creating a simple Github Action to enable tests on push? It's also ok to do it afterward.

@mashpie
Copy link
Contributor Author

mashpie commented Aug 9, 2020

Well, yes I could look into this. To me this looks a bit out-of-scope of the current PR. So for now I think the existing travis setup is just fine and working https://travis-ci.com/github/uscreen/fastify-hemera/builds/179037444

@StarpTech
Copy link
Member

Alright 👍

@StarpTech StarpTech merged commit 6dad595 into hemerajs:master Aug 9, 2020
@StarpTech
Copy link
Member

@mashpie The new version was released https://github.com/hemerajs/fastify-hemera/releases/tag/v10.0.0

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.

2 participants