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

Make this plugin compatible with Node.js 10+ #82

Merged
merged 5 commits into from
Jun 3, 2019
Merged

Conversation

scottinet
Copy link
Contributor

@scottinet scottinet commented May 29, 2019

Description

The zmq module is unmaintained for 3 years now, and it's no longer compatible with the latest versions of Node.js
However, a fork of that module has been made a year ago to solve that issue and, since then, the new module grew and is now the new standard to access 0mq with Node.js: zeromq

This PR replaces the zmq module with zeromq. Because it comes from a fork, the API is the same, so the changes are minimal.

Other changes

  • Make that plugin compatible only with kuzzle 1.8.0 and newer (especially because of that change: Events triggering refactor kuzzle#1308)
  • Add functional tests to the npm test command
  • Update dependencies

@scottinet scottinet self-assigned this May 29, 2019
@scottinet scottinet changed the base branch from master to 3-dev May 29, 2019 12:06
@codecov
Copy link

codecov bot commented May 29, 2019

Codecov Report

Merging #82 into 3-dev will not change coverage.
The diff coverage is 80%.

Impacted file tree graph

@@           Coverage Diff           @@
##            3-dev      #82   +/-   ##
=======================================
  Coverage   90.69%   90.69%           
=======================================
  Files           4        4           
  Lines         548      548           
=======================================
  Hits          497      497           
  Misses         51       51
Impacted Files Coverage Δ
lib/node.js 97.98% <100%> (ø) ⬆️
lib/index.js 83.8% <50%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 008e6a2...c82f585. Read the comment docs.

@Yoann-Abbes Yoann-Abbes merged commit 7578a53 into 3-dev Jun 3, 2019
@Yoann-Abbes Yoann-Abbes deleted the node10-compat branch June 3, 2019 12:09
@Aschen Aschen mentioned this pull request Jun 14, 2019
Aschen added a commit that referenced this pull request Jun 14, 2019
Bug fixes

    [ #78 ] Do not delete existing strategies at start (benoitvidis)
    [ #76 ] Strategies in redis (benoitvidis)

Enhancements

    [ #82 ] Make this plugin compatible with Node.js 10+ (scottinet)
    [ #80 ] Coverage (benoitvidis)
    [ #79 ] Readme update (benoitvidis)

Others

    [ #77 ] 1st try for functional tests on travis (benoitvidis)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants