Skip to content

Commit

Permalink
chore(Node): Adjust node compatibility range
Browse files Browse the repository at this point in the history
  • Loading branch information
nduchak committed Aug 28, 2019
1 parent 3dd537c commit fdd6484
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions es/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ const Node = stampit(AsyncInit, {
const { nodeRevision: revision, genesisKeyBlockHash: genesisHash, networkId, protocols } = await this.api.getStatus()
this.consensusProtocolVersion = await this.getConsensusProtocolVersion(protocols)
if (
!semverSatisfies(this.version.split('-')[0], NODE_GE_VERSION, NODE_LT_VERSION) &&
!(this.version === '5.0.0-rc.1' || semverSatisfies(this.version.split('-')[0], NODE_GE_VERSION, NODE_LT_VERSION)) &&
// Todo implement 'rc' version comparision in semverSatisfies
!forceCompatibility
) {
throw new Error(
Expand All @@ -154,6 +155,6 @@ const Node = stampit(AsyncInit, {
})

const NODE_GE_VERSION = '3.0.1'
const NODE_LT_VERSION = '6.0.0'
const NODE_LT_VERSION = '5.0.0-rc.2'

export default Node

0 comments on commit fdd6484

Please sign in to comment.