Skip to content

Commit

Permalink
chore: drop compatibility with v0.0.0-iris node
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 30, 2021
1 parent d9e98d0 commit f416cdd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ const Node = AsyncInit.compose({
this.internalUrl = internalUrl ? internalUrl.replace(/\/$/, '') : this.url
let client = await genSwaggerClient(`${this.url}/api`, { internalUrl: this.internalUrl })
this.version = client.spec.info.version
const isIrisPrereleaseNode = semverSatisfies(this.version, '0.0.0', '0.0.1') // TODO: Remove after Iris node release
if (
!isIrisPrereleaseNode &&
!semverSatisfies(this.version, NODE_GE_VERSION, NODE_LT_VERSION) &&
!ignoreVersion
) {
Expand All @@ -90,7 +88,7 @@ const Node = AsyncInit.compose({
`Supported: >= ${NODE_GE_VERSION} < ${NODE_LT_VERSION}`
)
}
if (isIrisPrereleaseNode || semverSatisfies(this.version, IRIS_NODE_GE_VERSION, NODE_LT_VERSION)) {
if (semverSatisfies(this.version, IRIS_NODE_GE_VERSION, NODE_LT_VERSION)) {
client = await genSwaggerClient(`${this.url}/api?oas3`, { internalUrl: this.internalUrl })
this._isIrisNode = true
}
Expand Down

0 comments on commit f416cdd

Please sign in to comment.